private void Start() { sm = GameObject.Find("Scene Manager").GetComponent <SceneManagery>(); variants = GameObject.FindGameObjectWithTag("Rooms").GetComponent <RoomVariants>(); Destroy(gameObject, waitTime); Invoke("Spawn", 0.2f); }
private void Awake() { variants = GameObject.FindGameObjectWithTag("Rooms").GetComponent <RoomVariants>(); }