2026-04-13 스킬,퀵슬롯 시스템 수정중
This commit is contained in:
@@ -43,6 +43,7 @@ public class InputManager : MonoBehaviour
|
||||
public event Action OnKeyDown_DownArrowEvent;
|
||||
public event Action OnKeyDown_EnterEvent;
|
||||
public event Action OnKeyDown_IKeyEvent;
|
||||
public event Action OnKeyDown_KKeyEvent;
|
||||
|
||||
|
||||
|
||||
@@ -94,6 +95,7 @@ public void SetUIInputMap(string mapName)
|
||||
BindActionUI("OnKeyDown_DownArrow", OnKeyDown_DownArrow);
|
||||
BindActionUI("OnKeyDown_Enter", OnKeyDown_Enter);
|
||||
BindActionUI("OnkeyDown_IKey", OnKeyDown_IKey);
|
||||
BindActionUI("OnKeyDown_KKey", OnKeyDown_KKey);
|
||||
|
||||
_uiInputActionMap.Disable();
|
||||
|
||||
@@ -128,6 +130,7 @@ public void SetCharacterInputMap(string mapName)
|
||||
BindActionCharacter("Interaction", OnInteraction);
|
||||
|
||||
BindActionCharacter("OnkeyDown_IKey", OnKeyDown_IKey);
|
||||
BindActionCharacter("OnKeyDown_KKey", OnKeyDown_KKey);
|
||||
|
||||
|
||||
_characterInputActionMap.Disable();
|
||||
@@ -307,5 +310,11 @@ private void OnKeyDown_IKey(InputAction.CallbackContext ctx)
|
||||
if(ctx.started)
|
||||
OnKeyDown_IKeyEvent?.Invoke();
|
||||
}
|
||||
|
||||
private void OnKeyDown_KKey(InputAction.CallbackContext ctx)
|
||||
{
|
||||
if (ctx.started)
|
||||
OnKeyDown_KKeyEvent?.Invoke();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user