Exemplo n.º 1
0
    private IEnumerator Attack()
    {
        GameState = GameState.Attack;

        _defendingHand.Container.Lock();
        if (_oponentAI.Hand.Equals(_attackingHand))
        {
            _attackingHand.Container.Lock();

            yield return(new WaitForSeconds(0.4f));

            CardController passedCard = _oponentAI.MakeMove(null, _deck.TrumpSuit);
            _transferManager.InstantTransfer(_attackingHand.Container, passedCard, _table.Container);
        }
        else
        {
            _attackingHand.Container.Unlock();
        }
    }