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; } }
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 { } }
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"); } }