Exemple #1
0
 public void Jump(Vector3 direction)
 {
     if (controller.isGrounded)
     {
         Debug.Log("JUUUUMP");
         movement.Propulse(direction * jumpForce);
     }
     else
     {
         Debug.Log("Can't jump .. because " + controller.isGrounded);
     }
 }