added enemy dead animation
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Darkmatter.Core
|
||||
|
||||
public event Action OnJumpPerformed;
|
||||
public event Action OnAdsCameraSwitch;
|
||||
public event Action OnReloadPerformed;
|
||||
public bool isShooting { get; private set; }
|
||||
public Vector2 moveInput { get; private set; }
|
||||
public Vector2 lookInput { get; private set; }
|
||||
@@ -62,5 +63,13 @@ namespace Darkmatter.Core
|
||||
OnAdsCameraSwitch?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
public void OnReload(InputAction.CallbackContext context)
|
||||
{
|
||||
if(context.performed)
|
||||
{
|
||||
OnReloadPerformed?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user