Initial commit

This commit is contained in:
Mausham
2025-12-10 18:02:47 -08:00
commit 1014b82c22
251 changed files with 32297 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using UnityEngine;
using UnityEngine.InputSystem;
using static GameInputs;
public class InputReader : ScriptableObject, IInputReader, IPlayerActions
{
private GameInputs _inputActions;
public Vector2 DragInput { get; private set;}
void OnEnable()
{
if (_inputActions == null)
{
_inputActions = new GameInputs();
_inputActions.Player.SetCallbacks(this);
}
_inputActions.Enable();
}
public void OnDrag(InputAction.CallbackContext context)
{
DragInput = context.ReadValue<Vector2>();
Debug.Log(DragInput);
}
}