示例#1
0
 private void Update()
 {
     if (lastCount != deck.CardCount())
     {
         ShowCards();
         lastCount = deck.CardCount();
     }
 }
示例#2
0
 private void Start()
 {
     fetchedCards = new Dictionary <int, GameObject>();
     deck         = GetComponent <CardStack>();
     ShowCards();
     lastCount         = deck.CardCount();
     deck.CardRemoved += Deck_CardRemoved;
 }