액션 및 인터랙션 정의 및 기존 인터랙션 및 채광 코드 구조 개선

This commit is contained in:
2026-01-17 22:53:29 +09:00
parent 8369e4d42f
commit 9b13f439e3
22 changed files with 295 additions and 670 deletions

View File

@@ -31,7 +31,6 @@ public class PlayerMovement : MonoBehaviour
_inputActions = new PlayerInputActions();
_inputActions.Player.Jump.performed += ctx => OnJump();
_inputActions.Player.Attack.performed += ctx => OnAttack();
_inputActions.Player.Interact.performed += ctx => OnInteract();
}
@@ -104,12 +103,6 @@ public class PlayerMovement : MonoBehaviour
if (_isGrounded) _velocity.y = Mathf.Sqrt(jumpHeight * -2f * gravity);
}
private void OnAttack()
{
if (_traveler != null && _traveler.IsTraveling) return;
_animator.SetTrigger("Attack");
}
private void OnInteract()
{
// 터널 이동 중에는 상호작용 금지