コード例 #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;
            }
        }
コード例 #2
0
 public void addCard(LandCard card)
 {
     landCards.Add(card);
 }