Example #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);
        }
    }
Example #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();
    }