Esempio n. 1
0
 internal void Reset()
 {
     _images.Clear();
     _spriteSheets.Clear();
     _spriteFonts.Clear();
     _soundEffects.Clear();
     _content.Unload();
 }
Esempio n. 2
0
 public void Destory()
 {
     log.I("LGame 2D Engine Shutdown");
     isClose = true;
     XNAConfig.Dispose();
     useXNAListener = false;
     if (this.sl_listener != null)
     {
         this.sl_listener.Dispose(GamePage, true);
         this.sl_listener = null;
     }
     if (UIElementRenderer != null)
     {
         UIElementRenderer.Dispose();
         UIElementRenderer = null;
     }
     if (content != null)
     {
         content.Unload();
         content = null;
     }
 }
Esempio n. 3
0
 public void Destroy(Microsoft.Xna.Framework.Content.ContentManager Content)
 {
     InAnimation.Clear();
     OutAnimation.Clear();
     Content.Unload();
 }