private void StartNextWave() { stopped = true; allowPlacingTowers = false; if (waves.Count > 0) { currentWave = waves.Dequeue(); endOfWavePrompt.text = currentWave.text + "\n\n Press 'SPACE' to start wave " + currentWave.id; endOfWavePrompt.enabled = true; towerFactory.SetTowerLimits(currentWave.towers); } else { winning = true; endOfWavePrompt.text = "YOU WIN!\n\nCongratulations!\n You defended the base from the skull invasion!\n\nThank you for playing!\n\nPress 'SPACE' for the credits"; endOfWavePrompt.enabled = true; } }