public bool CanPlayBasicAttack(List <AttackInputEnum> i_attackInputEnums, BaseAttack i_previousAttack) { if (allowedAttacks.Count != 0 && !allowedAttacks.Contains(i_previousAttack)) { return(false); } AttackInputEnum attackKey = attackInputs[0]; return(i_attackInputEnums.Contains(attackKey)); }
public bool CanPlayComboAttack(List <AttackInputEnum> i_attackInputEnums, BaseAttack i_previousAttack) { // Probably Contains Will Not Work Because of Instancing if (allowedAttacks.Count != 0 && !allowedAttacks.Contains(i_previousAttack)) { return(false); } if (i_attackInputEnums.Count != attackInputs.Count) { return(false); } for (int i = 0; i < i_attackInputEnums.Count; i++) { if (i_attackInputEnums[i] != attackInputs[i]) { return(false); } } return(true); }
private void Start() { m_attackInputs = new List <AttackInputEnum>(); m_currentAttackStopTime = 0; m_currentRunningAttack = null; }