private void Awake() { if (!Instance) { Instance = this; for (int index = 0; index < projectilesPrefabs.Length; index++) { projectilesDictionary.Add(projectilesPrefabs[index].gameObject.name, projectilesPrefabs[index]); } } else { Destroy(gameObject); } }
void CreateMainEntities() { m_PrefabsLibrary = Instantiate(PrefabsLibraryPrefab); }