update di chuyển debug jump
This commit is contained in:
@@ -127,7 +127,19 @@ namespace OnlyScove.Scripts
|
||||
|
||||
public void OnJump(InputAction.CallbackContext context)
|
||||
{
|
||||
if (context.performed) OnJumpEvent?.Invoke();
|
||||
if (context.performed)
|
||||
{
|
||||
wasJumpPressed = true;
|
||||
OnJumpEvent?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
private bool wasJumpPressed;
|
||||
public bool ConsumeJumpInput()
|
||||
{
|
||||
bool val = wasJumpPressed;
|
||||
wasJumpPressed = false;
|
||||
return val;
|
||||
}
|
||||
|
||||
public void OnDodgeOrThrust(InputAction.CallbackContext context)
|
||||
|
||||
Reference in New Issue
Block a user