Esempio n. 1
0
 private void Start()
 {
     templates = GameObject.FindGameObjectWithTag("Room").GetComponent <RoomTemp>();
     templates.rooms.Add(this.gameObject);
 }
Esempio n. 2
0
 void Start()
 {
     Destroy(gameObject, waittime);
     template = GameObject.FindGameObjectWithTag("Room").GetComponent <RoomTemp>();
     Invoke("Spwan", 0.1f);
 }