fix: 캐릭터 이동 시 기본공격 무한으로 적용되는 오류 수정

This commit is contained in:
aube.lee
2025-03-06 20:47:07 +09:00
parent a708f039ec
commit 1154f72c9a

View File

@@ -89,6 +89,10 @@ namespace TON
{ {
isGrounded = CheckIsGrounded(); isGrounded = CheckIsGrounded();
// 무한 기본공격 적용되지 않도록 기본공격 모션 중에 이동 제한
if (isAttack)
return;
// 키보드 입력과 조이스틱 입력 통합 // 키보드 입력과 조이스틱 입력 통합
float horizontalInput = Input.GetAxis("Horizontal"); float horizontalInput = Input.GetAxis("Horizontal");
if (joystick != null && Mathf.Abs(joystick.Horizontal) > 0.01f) if (joystick != null && Mathf.Abs(joystick.Horizontal) > 0.01f)