private void Start() { templates = GameObject.FindGameObjectWithTag("Templates").GetComponent <DungeonPrefabs>(); stats = GameObject.FindGameObjectWithTag("Level").GetComponent <LevelGeneration>(); door = this.transform.GetChild(0).GetComponentInChildren <DoorWay>(); //Invoke("Spawn", 0.1f); }
private void Awake() { templates = GameObject.FindGameObjectWithTag("Templates").GetComponent <DungeonPrefabs>(); stats = GameObject.FindGameObjectWithTag("Level").GetComponent <LevelGeneration>(); }