집씬으로 넘기기

This commit is contained in:
2026-07-14 16:34:20 +09:00
parent b87651b186
commit e0be196bbb
15 changed files with 213 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem;
public class InputManager : MonoBehaviour, GameInput.IPlayerActions
@@ -13,6 +14,9 @@ public class InputManager : MonoBehaviour, GameInput.IPlayerActions
public event Action OnJump_Event;
public event Action OnDialogNext_Event;
// 테스트용
[SerializeField] private UnityEvent _testEvents;
private void Awake()
{
if (Instance == null)
@@ -45,4 +49,10 @@ public void OnDialogNext(InputAction.CallbackContext ctx)
if (ctx.phase == InputActionPhase.Started)
OnDialogNext_Event?.Invoke();
}
public void OnTestButton(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
_testEvents?.Invoke();
}
}