コード例 #1
0
    private void AssignAttack(IAttackCard attackCard)
    {
        if (current == null || attackCard.Warrior.Enemies.Count >= attackCard.Combat.MaxCountAttackers)
        {
            return;
        }

        attackCard.AddAttacker(current);
        current.SetClickListener(CancelAttacker);
        current = null;
    }
コード例 #2
0
 private void CancelAttacker(IAttackCard attackCard)
 {
     attackCard.RemoveAttacker();
     attackCard.SetClickListener(SelectReserveCard);
 }