2026-04-13 스킬시스템 진행중
This commit is contained in:
@@ -109,6 +109,14 @@ public void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||
InputManager.Instance.OnLookEvent += CurrentCharacterController.LookInput;
|
||||
InputManager.Instance.OnDodgeEvent += CurrentCharacterController.DodgeInput;
|
||||
|
||||
//스킬 범위 확정 (Remote 스킬)
|
||||
SkillModule sm = CurrentCharacter.GetComponent<SkillModule>();
|
||||
if (sm != null)
|
||||
{
|
||||
InputManager.Instance.OnAreaConfirmEvent -= sm.AreaConfirmInput;
|
||||
InputManager.Instance.OnAreaConfirmEvent += sm.AreaConfirmInput;
|
||||
}
|
||||
|
||||
//공격매핑
|
||||
//InputManager.Instance.OnNormalAttackEvent;
|
||||
//InputManager.Instance.OnHeavyAttackEvent;
|
||||
@@ -134,6 +142,40 @@ private void ApplyCharacterInfo(PlayerCharacterController pcc, UserCharacter uc)
|
||||
pcc.PlayerCharacterIdentity.IsDefaultControl = uc.DefaultControl;
|
||||
}
|
||||
|
||||
public void BindSlotAction(string slotName,Action<InputState> slotUseAction)
|
||||
{
|
||||
if (slotName == "UseSlot_Q")
|
||||
{
|
||||
InputManager.Instance.OnKeyDown_SlotQEvent -= slotUseAction;
|
||||
InputManager.Instance.OnKeyDown_SlotQEvent += slotUseAction;
|
||||
}
|
||||
else if (slotName == "UseSlot_E")
|
||||
{
|
||||
InputManager.Instance.OnKeyDown_SlotEEvent -= slotUseAction;
|
||||
InputManager.Instance.OnKeyDown_SlotEEvent += slotUseAction;
|
||||
}
|
||||
else if (slotName == "UseSlot_R")
|
||||
{
|
||||
InputManager.Instance.OnKeyDown_SlotREvent -= slotUseAction;
|
||||
InputManager.Instance.OnKeyDown_SlotREvent += slotUseAction;
|
||||
}
|
||||
else if (slotName == "UseSlot_T")
|
||||
{
|
||||
InputManager.Instance.OnKeyDown_SlotTEvent -= slotUseAction;
|
||||
InputManager.Instance.OnKeyDown_SlotTEvent += slotUseAction;
|
||||
}
|
||||
else if (slotName == "UseSlot_F")
|
||||
{
|
||||
InputManager.Instance.OnKeyDown_SlotFEvent -= slotUseAction;
|
||||
InputManager.Instance.OnKeyDown_SlotFEvent += slotUseAction;
|
||||
}
|
||||
else if (slotName == "UseSlot_G")
|
||||
{
|
||||
InputManager.Instance.OnKeyDown_SlotGEvent -= slotUseAction;
|
||||
InputManager.Instance.OnKeyDown_SlotGEvent += slotUseAction;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
if(InputManager.Instance != null)
|
||||
|
||||
Reference in New Issue
Block a user