예제 #1
0
    /// <summary>
    /// draw and immediately use a card from the deck
    /// </summary>
    private void useCardInDeck()
    {
        Card card;

        if (CardConstructor.constructCard(deck.drawCard(), out card))
        {
            card.useCard(actor);
        }
    }
예제 #2
0
    private void drawCard()
    {
        Card card;

        if (CardConstructor.constructCard(hand.deck.drawCard(), out card))
        {
            receiveCard(card);
        }
        else
        {
            Debug.LogWarning("no cards left in deck");
            displayCardIcon();
        }
        resetTimerGrapics();
        updateGrapic_Timer();
    }