Пример #1
0
 /// <summary>
 /// Resets the Master Deck to have all of the possible Cards again
 /// </summary>
 public static void Reset()
 {
     lock (padLock)
     {
         instance = new MasterDeck();
         instance.Shuffle();
     }
 }
Пример #2
0
 private static MasterDeck GetInstance()
 {
     if (instance == null)
     {
         lock (padLock)
         {
             if (instance == null)
             {
                 instance = new MasterDeck();
                 instance.Shuffle();
             }
         }
     }
     return(instance);
 }