private void BecomeSingleton() { if (deckPrototypeFactory == null) { deckPrototypeFactory = this; } else { Destroy(gameObject); } }
public static void Clear() { int size = CardPrototypesInitializer.GetAmountOfCardPrototypes(); instance.cardsLevel = new int[size]; }