added reload animation and bullet limit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user