added reload animation and bullet limit

This commit is contained in:
Mausham
2025-12-29 16:41:50 -08:00
parent 3e98a42d4e
commit 357a226e21
531 changed files with 299250 additions and 849 deletions

View File

@@ -10,6 +10,7 @@ namespace Darkmatter.Core
public GameInputAction action;
public event Action OnJumpPerformed;
public event Action OnAdsCameraSwitch;
public bool isShooting { get; private set; }
public Vector2 moveInput { get; private set; }
public Vector2 lookInput { get; private set; }
@@ -53,5 +54,13 @@ namespace Darkmatter.Core
{
isShooting = context.ReadValueAsButton();
}
public void OnADSCamera(InputAction.CallbackContext context)
{
if(context.performed)
{
OnAdsCameraSwitch?.Invoke();
}
}
}
}