게임클리어 이벤트
This commit is contained in:
@@ -12,6 +12,7 @@ public class InputManager : MonoBehaviour, GameInput.IPlayerActions
|
||||
// ─── 입력 이벤트들 (PlayerController 등이 구독) ──────────────────────
|
||||
public event Action OnJump_Event; // 한 번씩 (눌렀을 때)
|
||||
public event Action OnInteract_Event; // 상호작용 키 (앉기 등) — 눌렀을 때 한 번씩
|
||||
public event Action OnDialogNext_Event; // 대화 다음 진행 (VR B버튼) — 눌렀을 때 한 번씩
|
||||
|
||||
//키보드로 테스트용
|
||||
public event Action OnKey_Left_Event;
|
||||
@@ -51,6 +52,12 @@ public void OnInteract(InputAction.CallbackContext ctx)
|
||||
OnInteract_Event?.Invoke();
|
||||
}
|
||||
|
||||
public void OnDialogNext(InputAction.CallbackContext ctx)
|
||||
{
|
||||
if (ctx.phase == InputActionPhase.Started)
|
||||
OnDialogNext_Event?.Invoke();
|
||||
}
|
||||
|
||||
public void OnKey_Left(InputAction.CallbackContext ctx)
|
||||
{
|
||||
if (ctx.phase == InputActionPhase.Started)
|
||||
|
||||
Reference in New Issue
Block a user