Beispiel #1
0
 // Catch input activating a jump
 public void JumpInput()
 {
     if (Input.GetButtonDown("Jump"))
     {
         playerMovementController.SetJumping(Input.GetButtonDown("Jump"));
     }
     else
     {
         playerMovementController.SetJumping(Input.GetButtonUp("Jump"));
     }
 }