private void AssignAttack(IAttackCard attackCard) { if (current == null || attackCard.Warrior.Enemies.Count >= attackCard.Combat.MaxCountAttackers) { return; } attackCard.AddAttacker(current); current.SetClickListener(CancelAttacker); current = null; }
private void CancelAttacker(IAttackCard attackCard) { attackCard.RemoveAttacker(); attackCard.SetClickListener(SelectReserveCard); }