// crouching only if able to crouch and not in the air. // you can crouch the instant you land and hold the crouch button like in OW. private void HandleCharacterCrouch() { if (isAbleToCrouch && isGrounded) { if (m_InputHandler.GetCrouchInput() && !isCrouching) { SetCrouchingState(!isCrouching, false); } else if (isCrouching && (m_InputHandler.GetCrouchInputReleased() || !m_InputHandler.GetCrouchInput())) { SetCrouchingState(false, false); } } }