public void GameOver(EGameOverReason reason) { ChangeInformation(); switch (reason) { case EGameOverReason.Dead: WaveManager.StopAutoWave(); TowerManager.CancelBuildMode(); GuiManager.ShowGameOverWindow(); break; case EGameOverReason.Won: break; case EGameOverReason.Cancelled: break; default: throw new ArgumentOutOfRangeException("reason"); } }