private void FixedUpdate()
 {
     //player jump input
     if (Input.GetButtonDown("Jump"))
     {
         movement.Jump();
     }
 }
Exemplo n.º 2
0
 void Jump()
 {
     if (isGrounded)
     {
         rbMove.Jump();
         waitTime = 0;
         SoudManager.instance.Play("Jump");
     }
 }