Beispiel #1
0
 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);
 }
Beispiel #2
0
 void Awake()
 {
     activeSpawners = GameObject.Find("StartRoom").GetComponent <ActiveSpawners>();
     templates      = GameObject.FindGameObjectWithTag("Templates").GetComponent <RoomTemplates>();
     activeSpawners.spawnerList.Add(this.gameObject);
 }