27 lines
619 B
C#
27 lines
619 B
C#
using static InputActions;
|
|
|
|
public class InputSystem
|
|
{
|
|
private InputActions _inputActions;
|
|
public PlayerActions PlayerAction { get; private set; }
|
|
public CameraActions CameraAction { get; private set; }
|
|
public UIActions UIAction { get; private set; }
|
|
|
|
public InputSystem()
|
|
{
|
|
_inputActions = new InputActions();
|
|
|
|
PlayerAction = _inputActions.Player;
|
|
CameraAction = _inputActions.Camera;
|
|
UIAction = _inputActions.UI;
|
|
}
|
|
|
|
public void Enable()
|
|
{
|
|
_inputActions.Enable();
|
|
}
|
|
public void Disable()
|
|
{
|
|
_inputActions.Disable();
|
|
}
|
|
} |