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); } }
public bool isSameAs(ComboInput input) { return(attackType == input.attackType); }