private void GetInput() { // check if player wants character to sprint if (Input.GetButtonDown("Sprint")) { playerCharacterMovement.isSprinting = true; } else if (Input.GetButtonUp("Sprint")) { playerCharacterMovement.isSprinting = false; } // check if player wants character to jump if (Input.GetButtonDown("Jump")) { playerCharacterMovement.Jump(); } if (Input.GetButtonDown("Fire1")) { playerGravityController.ChangeGravityByPlayerView(); } if (Input.GetAxis("Time Scale Scroll") != 0) { playerTimeController.AdjustTime(Input.GetAxis("Time Scale Scroll"), true); } else if (Input.GetAxis("Time Scale") != 0) { playerTimeController.AdjustTime(Input.GetAxis("Time Scale"), false); } // move character based on input playerCharacterMovement.Move(Input.GetAxis("Strafe"), Input.GetAxis("Walk")); }