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