//before
public void OnSkillMouseLeft(InputAction.CallbackContext context)
{
if (isMelee)
{
if (context.performed)
{
if (inputQueues[InputType.ML3].Count == 1 && comboOneTimer <= 0f)
{
inputQueues[InputType.ML3].Clear();
comboOneTimer = playerStats.ComboOneTime;
motionCancelTimer = playerStats.MotionCancelTime;
TimerManager.Instance.StartTimer(comboThreeTimer, () =>
{
UseSkill(InputType.ML3);
actionTimer = playerStats.ComboOneTime;
});
}
if (inputQueues[InputType.ML2].Count == 1 && comboThreeTimer <= 0f)
{
inputQueues[InputType.ML2].Clear();
EnqueueInput(InputType.ML3);
comboThreeTimer = playerStats.ComboThreeTime;
TimerManager.Instance.StartTimer(comboTwoTimer, () =>
{
UseSkill(InputType.ML2);
actionTimer = playerStats.ComboThreeTime;
});
}
if (comboOneTimer <= 0f && comboTwoTimer <= 0f && comboThreeTimer <= 0f)
{
EnqueueInput(InputType.ML2);
comboTwoTimer = playerStats.ComboTwoTime;
UseSkill(InputType.ML1);
actionTimer = playerStats.ComboTwoTime;
}
}
}
}
//after
public void OnSkillMouseLeft(InputAction.CallbackContext context)
{
if (isMelee)
{
switch (context.phase)
{
case InputActionPhase.Performed:
isMouseLeftPress = true;
break;
case InputActionPhase.Canceled:
isMouseLeftPress = false;
break;
}
}
}
λ§λ μ λκ² μ§°λ μ½λ κ°μμλλ° μκ° λ€ λΉ¨λ¦¬κ³ μμ
ν΄λΉ λκΈμ μμ λμμ΅λλ€.
λμΌ, νν μΈκ°€λ¬μ λͺ¨μ΅μ΄μμ?
빨리면 κΈ°λΆμ΄ μΌν΄μ§μλ..
μ μ΄μ λ§ν 껨μ 보μ¬μ£ΌμΈμ
κ°κ²μΈκ±Έ?
κ±±μ λ§, λλ 보λκ²μμ μ΄λ κ² λ§λ€κ³ μμ μ€ λͺ°λμΌλκΉγ κ³νμ λ νμ΄μ§κΊΌμΌ!
γΉγ λ€ κΈ°μλ§μΆλ €λκΉ λ리λ¬μ μ§κΈ;
μΌμ¨λ³΄μΈλ€ λμλΈλ‘κ°μ
κ³ λ§μ
μ μ§±λ©μ§λ€..!
νλ‘ν νμ΄νμ μ€μμ±.. μ΄?
λλκ²λ μ μ μλ μ½λλ μ μλμν¨ - dc App