Exemplo n.º 1
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;
     }
 }
Exemplo n.º 2
0
 public void GameDestory()
 {
     log.I("LGame 2D Engine Shutdown");
     try
     {
         isClose = true;
         if (process != null)
         {
             process.OnDestroy();
         }
         if (content != null)
         {
             content.Unload();
             content = null;
         }
         XNAConfig.Dispose();
         Exit();
     }
     catch
     {
     }
 }
Exemplo n.º 3
0
 public void FinishApp()
 {
     if (!LSystem.isDestroy)
     {
         lock (this.m_sync)
         {
             LSystem.isRunning = false;
             LSystem.isDestroy = true;
             if (LSystem.screenProcess != null)
             {
                 LSystem.screenProcess.OnDestroy();
                 ActionControl.GetInstance().StopAll();
             }
             XNAConfig.Dispose();
             if (fpsFont != null)
             {
                 fpsFont.Dispose();
                 fpsFont = null;
             }
         }
         Printf("finishApp");
     }
 }