private void Start() { Destroy(gameObject, waitTime); roomSpawner = GameObject.FindGameObjectWithTag("Rooms").GetComponent <SpawerTamplats>(); Invoke("Spawn", 0.1f); }
void Start() { roomTamplats = GameObject.FindGameObjectWithTag("Rooms").GetComponent <SpawerTamplats>(); roomTamplats.rooms.Add(this.gameObject); }