public void Awake() { _instance = this; collectionObjectsParent = new GameObject("__COLLECTION_OBJECTS").transform; }
public void Awake() { _instance = this; #if UNITY_EDITOR if (lang == null) Debug.LogError("Language Database is not assigned!", transform); #endif lootToCollections = new List<InventoryCollectionLookup<ItemCollectionBase>>(4); equipToCollections = new List<InventoryCollectionLookup<CharacterUI>>(4); bankCollections = new List<ItemCollectionBase>(4); collectionObjectsParent = new GameObject("__COLLECTION_OBJECTS").transform; collectionObjectsParent.transform.SetParent(transform); }