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();
 }
Beispiel #3
0
 public static void OnJumpPressed()
 {
     JumpPressed?.Invoke(null, EventArgs.Empty);
 }