using System; using UnityEngine; public class InputManager { public Action KeytAction = null; public void OnUpdate() { if (Input.anyKey == false) { return; } if (KeytAction != null) { KeytAction.Invoke(); } } }