Beispiel #1
0
        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));
        }
Beispiel #2
0
 public void AddAttackInput(AttackInputEnum attackInputEnum) => m_attackInputs.Add(attackInputEnum);