void Awake() { activeSpawners = GameObject.Find("/MiniMap/FloorGeneration(Clone)/StartRoom").GetComponent <ActiveSpawners>(); tempFind = GameObject.FindGameObjectsWithTag("Templates"); foreach (GameObject template in tempFind) { if (template.name == "roomNodeTemplates") { templates = template.GetComponent <RoomTemplates>(); } } activeSpawners.spawnerList.Add(this.gameObject); }
void Awake() { activeSpawners = GameObject.Find("StartRoom").GetComponent <ActiveSpawners>(); templates = GameObject.FindGameObjectWithTag("Templates").GetComponent <RoomTemplates>(); activeSpawners.spawnerList.Add(this.gameObject); }