void Start()
 {
     templates = GameObject.FindGameObjectWithTag("Rooms").GetComponent <roomTemplates>();
     Invoke("Spawn", 0.2f);
 }
 // Start is called before the first frame update
 void Start()
 {
     templates = GameObject.FindGameObjectWithTag("Rooms").GetComponent <roomTemplates>();
     //verzögert, da sonst buggy
     Invoke("spawnRoom", 0.1f);
 }
Пример #3
0
 private void Start()
 {
     template = GameObject.FindGameObjectWithTag("rooms").GetComponent<roomTemplates>();
     Invoke("spawn", 0.1f);
     Destroy(gameObject, waitTime);
 }
 void Start()
 {
     // add the room to a list of rooms in the roomTemplates object
     templates = GameObject.FindGameObjectWithTag("Rooms").GetComponent <roomTemplates>();
     templates.rooms.Add(this.gameObject);
 }
Пример #5
0
 private void Start()
 {
     templates = GameObject.FindGameObjectWithTag("rooms").GetComponent <roomTemplates>();
     templates.rooms.Add(this.gameObject);
 }