예제 #1
0
 public bool ShouldContinueCombo(ComboInput input)
 {
     if (inputs[currentInput].isSameAs(input))
     {
         currentInput++;
         if (currentInput >= inputs.Count) //finished the inputs and we should do the attack
         {
             onInput.Invoke();
             currentInput = 0;
         }
         return(true);
     }
     else
     {
         currentInput = 0;
         return(false);
     }
 }
예제 #2
0
 public bool isSameAs(ComboInput input)
 {
     return(attackType == input.attackType);
 }