예제 #1
0
bool ANimModCharacter::IsCrouched() const
{
	UCharacterMovementComponent* MoveComp = GetCharacterMovement();
	if (MoveComp)
		return MoveComp->IsCrouching();

	return bIsCrouched;
}
예제 #2
0
void ANimModCharacter::OnUnCrouch()
{
	UCharacterMovementComponent* MoveComp = GetCharacterMovement();
	if (MoveComp && MoveComp->IsCrouching())
		UnCrouch();
}