Project structure, add docs update unity version

This commit is contained in:
2026-06-05 12:19:36 +03:00
parent fc24653f9a
commit 39294ec527
87 changed files with 5910 additions and 371 deletions
+24
View File
@@ -0,0 +1,24 @@
public class InputManager : MonoBehaviour
{
private InputActions _inputActions;
public event EventHandler<Vector2> OnMovementInput;
public event EventHandler OnFireButtonPressed;
private void Awake()
{
_inputActions = new InputActions();
_inputActions.Player.Movement.performed += ctx => OnMovementInput?.Invoke(ctx.ReadValue<Vector2>());
_inputActions.Player.Fire.performed += ctx => OnFireButtonPressed?.Invoke();
}
private void OnEnable()
{
_inputActions.Enable();
}
private void OnDisable()
{
_inputActions.Disable();
}
}