액션 및 인터랙션 정의 및 기존 인터랙션 및 채광 코드 구조 개선
This commit is contained in:
@@ -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()
|
||||
{
|
||||
// 터널 이동 중에는 상호작용 금지
|
||||
|
||||
Reference in New Issue
Block a user