// Spawn all the enemies in a given wave private void spawnWave(WaveTuple tuple) { // Adjust the camera size and scroll speed if (!freeplayMode) { Camera.main.GetComponent <CameraSmoothZoom> ().addToCameraSize(tuple.cameraSizeChange); ScrollManager.setScrollVelo(tuple.scrollDirection, tuple.scrollSpeed); } else { ScrollManager.setScrollVelo(direction.down, 5); } Wave w = tuple.wave; if (w == null) { return; } // Re-initialize the spawners array and then spawn the wave initSpawnersArray(); List <TypeNumPair>[] waveSpawns = { w.TopSpawner, w.BotSpawner, w.LeftSpawner, w.RightSpawner, w.TopFarLeft, w.TopMidLeft, w.TopMidRight, w.TopFarRight }; currently_spawning = true; StartCoroutine(spawnLoop(waveSpawns)); }