Exemplo n.º 1
0
 //void InputRun()
 //{
 //    if(Input.GetButtonDown("Run"))
 //    {
 //        Debug.Log("Run");
 //        player.isRunning = true;
 //    }
 //    if(Input.GetButtonUp("Run"))
 //    {
 //        player.isRunning = false;
 //        Debug.Log("Walk");
 //    }
 //}
 void InputCrouch()
 {
     if (Input.GetButton("Crouch"))
     {
         Debug.Log("Crouch");
         player.Crouch();
     }
 }