21 lines
302 B
C#
21 lines
302 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
public class InputManager
|
|
{
|
|
public Action KeytAction = null;
|
|
|
|
public void OnUpdate()
|
|
{
|
|
if (Input.anyKey == false)
|
|
{
|
|
return;
|
|
}
|
|
|
|
if (KeytAction != null)
|
|
{
|
|
KeytAction.Invoke();
|
|
}
|
|
}
|
|
}
|