인풋매니저, 리소스매니저 구조 생성 및 리소스 정리
This commit is contained in:
20
Assets/Scripts/Managers/InputManager.cs
Normal file
20
Assets/Scripts/Managers/InputManager.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class InputManager
|
||||
{
|
||||
public Action KeytAction = null;
|
||||
|
||||
public void OnUpdate()
|
||||
{
|
||||
if (Input.anyKey == false)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (KeytAction != null)
|
||||
{
|
||||
KeytAction.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user