2026-05-20 무기습득

This commit is contained in:
2026-05-20 10:57:44 +09:00
parent 4a0b07701e
commit 3769ff87bf
289 changed files with 19793 additions and 14 deletions

View File

@@ -33,6 +33,9 @@ public class InputManager : MonoBehaviour, GameInput.IPlayerActions
public event Action OnRoll_Event;
public event Action OnBackDash_Event;
public event Action OnGrabSmash_Event;
public event Action OnWeaponSlot1_Event;
public event Action OnWeaponSlot2_Event;
public event Action OnWeaponSlot3_Event;
// 싱글톤 초기화 + GameInput 생성 + 콜백 등록.
private void Awake()
@@ -104,4 +107,22 @@ public void OnGrabSmash(InputAction.CallbackContext ctx)
if (ctx.phase == InputActionPhase.Started)
OnGrabSmash_Event?.Invoke();
}
public void OnWeaponSlot1(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
OnWeaponSlot1_Event?.Invoke();
}
public void OnWeaponSlot2(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
OnWeaponSlot2_Event?.Invoke();
}
public void OnWeaponSlot3(InputAction.CallbackContext ctx)
{
if (ctx.phase == InputActionPhase.Started)
OnWeaponSlot3_Event?.Invoke();
}
}