Exemple #1
0
 protected override void OnHandDealt()
 {
     if (cpuHand == null)
     {
         cpuHand = new CPUHand(Deck.Instance().cpuHandPrefab, handPosition.transform);
     }
     if (handCards.Count > 1)
     {
         cpuHand.Show(handCards.Count);
         //A bit of randomness to give it some character
         Invoke("CPUMadeChoice", UnityEngine.Random.Range(0.5f, 2.5f));
     }
     else
     {
         //Don't even show the CPUHand object in this case, just instantiate the player card immediately
         OnCardPicked(handCards.First());
     }
 }