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