void BonusWaveStart() { if (dial.escapedEnemyCount == 0) { GameEvent winevent = new GameEvent("you_won"); EventManager.Instance().RaiseEvent(winevent); return; } Dictionary <string, System.Object> json = dial.GetBonusJSON(); bonusWave = new Wave(json); dial.ClearBonusJSON(); bonusTimer = new Timer(); delayTimer = new Timer(); bonusWaveIsHappening = true; bonusGoing = false; delayTimer.Restart(); WaveMessageBox.StandardWarning(bonusWaveCode); bonusWaveCode--; }