public void SetStageVariables() { CurrentStage.Restart(); notesMissed = 0; piggyBankSpawner.Stop(); if (CurrentStage.HasFlag(Stage.StageFlags.PigsEnabled)) { piggyBankSpawner.Start(); } vacuumSpawner.Stop(); if (CurrentStage.HasFlag(Stage.StageFlags.VacuumsEnabled)) { vacuumSpawner.Interval = CurrentStage.VacuumSpawnTime; vacuumSpawner.Start(); } noteSpawner.Stop(); if (CurrentStage.HasFlag(Stage.StageFlags.NotesEnabled)) { noteSpawner.Interval = CurrentStage.NoteSpawnTime; noteSpawner.Start(); } if (!CurrentStage.HasFlag(Stage.StageFlags.LaserPlayerEnabled)) { laserPlayer.FiringLaser = false; SoundController.StopAllLoops(); } }