update di chuyển debug jump

This commit is contained in:
2026-05-30 11:20:59 +07:00
parent ee8e633043
commit dfcf8c1c25
26 changed files with 2716 additions and 219 deletions

View File

@@ -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)