void Start() { room = this.gameObject.transform.parent.gameObject.GetComponent <RoomScript>(); enemiesGen = this.gameObject.transform.parent.gameObject.GetComponent <EnemiesGenerator>(); doorSensors = GetComponents <Collider>(); doorsClosed = false; }
void Start() { rooms = GetComponent <RoomGenerator>(); corridors = GetComponent <CorridorGenerator>(); walls = GetComponent <WallGenerator>(); chests = GetComponent <ChestGenerator>(); playerAndMerchantsGenerator = GetComponent <PlayerAndMerchantsGenerator>(); enemiesGenerator = GetComponent <EnemiesGenerator>(); StartCoroutine(CreateDungeon()); // }
// Start is called before the first frame update void Start() { i = this; running = true; }
private void Awake() { Instance = this; }