private void CrouchInput() { if (Input.GetKeyDown(KeyCode.S)) { float inputX = Input.GetAxisRaw("Horizontal"); state = state.Crouch(inputX); } }