예제 #1
0
        public void shuffleCards()
        {
            int      index = 0;
            LandCard temp  = null;

            for (int i = 0; i < landCards.Count - 1; i++)
            {
                index            = Random.Range(i, landCards.Count);
                temp             = landCards[index];
                landCards[index] = landCards[i];
                landCards[i]     = temp;
            }
        }
 public void addCard(LandCard card)
 {
     landCards.Add(card);
 }