/* Sets up the room by spawning enemies and subscribing to all their death events. */ private void Awake() { spawner = gameObject.transform.Find("SpawnPoints").gameObject.GetComponent <SpawnScript>(); spawnedEnemies = spawner.SpawnEnemies(); numEnemies = spawnedEnemies.Count; SubscribeToEnemyDeath(); }