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