private void BecomeSingleton()
 {
     if (deckPrototypeFactory == null)
     {
         deckPrototypeFactory = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
예제 #2
0
    public static void Clear()
    {
        int size = CardPrototypesInitializer.GetAmountOfCardPrototypes();

        instance.cardsLevel = new int[size];
    }