protected override void UnloadContent() { TextureCache.UnloadContent(); ParticleEmitter.UnloadContent(); SpriteEngine.UnloadContent(); TilemapEngine.UnloadContent(); TriangleEngine.UnloadContent(); TextEngine.UnloadContent(); ParallaxEngine.UnloadContent(); SoundEngine.UnloadContent(); MusicEngine.UnloadContent(); ActiveWindow.UnloadContent(); }
public void UnloadLevel() { Game1.Log("Game", "Unloading level..."); ActiveWindow.UnloadContent(); SoundEngine.UnloadContent(); MusicEngine.UnloadContent(); TextureCache.UnloadContent(); // Reload engine that got purged in texture unload ParticleEmitter.LoadContent(Content); var Loader = new LoadScreen(this); Loader.LoadContent(Content); ActiveWindow = Loader; }