//public void Draw() public IEnumerator Draw() { cardInfo.handInUse.Draw(this); _cfm.CardFlip(); OnCardInfoUpdated?.Invoke(this, EventArgs.Empty); yield return(new WaitForSeconds(1f)); }
public void Init(CardData cardData, Deck fromDeck) { // load the card data _cardData = cardData; // overwrite cardInfo for this instance gameObject.name = cardData.name; cardInfo = cardData.cardInfo; cardInfo.cardObj = gameObject; cardInfo.deck = fromDeck; OnCardInfoUpdated?.Invoke(this, EventArgs.Empty); }