Пример #1
0
 //public void Draw()
 public IEnumerator Draw()
 {
     cardInfo.handInUse.Draw(this);
     _cfm.CardFlip();
     OnCardInfoUpdated?.Invoke(this, EventArgs.Empty);
     yield return(new WaitForSeconds(1f));
 }
Пример #2
0
    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);
    }