Created
June 2, 2024 12:44
-
-
Save dyguests/65c5015209309ea3a735809b2d8d1d7f to your computer and use it in GitHub Desktop.
CommonInput.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace Inputs | |
{ | |
public abstract class CommonInput : MonoBehaviour | |
{ | |
protected InputActions InputActions { get; private set; } | |
protected virtual void Awake() | |
{ | |
InputActions = new InputActions(); | |
} | |
protected virtual void OnEnable() | |
{ | |
InputActions.Enable(); | |
} | |
protected virtual void OnDisable() | |
{ | |
InputActions.Disable(); | |
} | |
public interface ICallback | |
{ | |
void Return(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment