Open jayman2009 opened 3 years ago
the jump and walking is fine but looking around or crouching does not work
you just need to fix this issue you need this code on crouch on 80th line
crouching = Input.GetKey(KeyCode.LeftControl);
//Crouching
if (Input.GetKeyDown(KeyCode.LeftControl))
StartCrouch();
if (Input.GetKeyUp(KeyCode.LeftControl))
StopCrouch();
instead of
crouching = Input.GetButton("Crouch");
//Crouching
if (Input.GetButtonDown("Crouch"))
StartCrouch();
if (Input.GetButtonUp("Crouch"))
StopCrouch();
please help me