2026-05-20 무기습득
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user