2026-04-10 퀵슬롯진행중
This commit is contained in:
@@ -26,6 +26,12 @@ public class InputManager : MonoBehaviour
|
||||
public event Action OnNormalAttackEvent;
|
||||
public event Action OnHeavyAttackEvent;
|
||||
public event Action OnInteractionEvent;
|
||||
public event Action OnKeyDown_SlotQEvent;
|
||||
public event Action OnKeyDown_SlotEEvent;
|
||||
public event Action OnKeyDown_SlotREvent;
|
||||
public event Action OnKeyDown_SlotTEvent;
|
||||
public event Action OnKeyDown_SlotFEvent;
|
||||
public event Action OnKeyDown_SlotGEvent;
|
||||
|
||||
|
||||
//키조작
|
||||
@@ -105,6 +111,14 @@ public void SetCharacterInputMap(string mapName)
|
||||
BindActionCharacter("NormalAttack", OnNormalAttack);
|
||||
BindActionCharacter("HeavyAttack", OnHeavyAttack);
|
||||
|
||||
//퀵슬롯은 하나의 메서드로 관리
|
||||
BindActionCharacter("UseSlot_Q",OnKeyDown_Slot);
|
||||
BindActionCharacter("UseSlot_E",OnKeyDown_Slot);
|
||||
BindActionCharacter("UseSlot_R",OnKeyDown_Slot);
|
||||
BindActionCharacter("UseSlot_T",OnKeyDown_Slot);
|
||||
BindActionCharacter("UseSlot_F",OnKeyDown_Slot);
|
||||
BindActionCharacter("UseSlot_G",OnKeyDown_Slot);
|
||||
|
||||
BindActionCharacter("Interaction", OnInteraction);
|
||||
|
||||
BindActionCharacter("OnkeyDown_IKey", OnKeyDown_IKey);
|
||||
@@ -223,6 +237,14 @@ private void OnInteraction(InputAction.CallbackContext ctx)
|
||||
if (ctx.started)
|
||||
OnInteractionEvent?.Invoke();
|
||||
}
|
||||
|
||||
private void OnKeyDown_Slot(InputAction.CallbackContext ctx)
|
||||
{
|
||||
if(ctx.started)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 키별 조작
|
||||
|
||||
Reference in New Issue
Block a user