示例#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);
 }