2026-06-18 많은 플레이어 수정사항

This commit is contained in:
2026-06-18 15:07:21 +09:00
parent dff151c5f0
commit 67c2b2c179
30 changed files with 543 additions and 22 deletions

View File

@@ -11,7 +11,8 @@ public class InputManager : MonoBehaviour, GameInput.IPlayerActions
// ─── 입력 이벤트들 (PlayerController 등이 구독) ──────────────────────
public event Action OnJump_Event; // 한 번씩 (눌렀을 때)
public event Action OnInteract_Event; // 상호작용 키 (앉기 등) — 눌렀을 때 한 번씩
//키보드로 테스트용
public event Action OnKey_Left_Event;
public event Action OnKey_Right_Event;
@@ -44,6 +45,12 @@ public void OnJump(InputAction.CallbackContext ctx)
OnJump_Event?.Invoke();
}
public void OnInteract(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
OnInteract_Event?.Invoke();
}
public void OnKey_Left(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)