public void OnJump(InputAction.CallbackContext context) { if (context.started) { JumpHeld = true; JumpPressed?.Invoke(); } else if (context.canceled) { JumpHeld = false; JumpReleased?.Invoke(); } }
private void Jump() { JumpPressed.Invoke(); }
public static void OnJumpPressed() { JumpPressed?.Invoke(null, EventArgs.Empty); }