private GameplayScreen() { TransitionOnTime = TimeSpan.FromSeconds(1.5); TransitionOffTime = TimeSpan.FromSeconds(0.5); random = new MyRandom(Environment.TickCount); zunePad = new ZunePad(); highScores = new Highscores(this); drawText = new DrawText(this); drawPrims = new DrawPrims(this); boidManager = new BoidManager(this); particles = new ParticleSystem(this); world = new World(this); player = new Player(this); }
/// <summary> /// Save the scores and dispose of the particles /// </summary> public override void UnloadContent() { highScores.Save(); particles = null; MediaPlayer.Stop(); base.UnloadContent(); }