void OnDestroy() { if (isWriteMd5File) { md5File.WriteToLocalFile(GameConfig.default_module); } if (thread != null) { thread.Stop(); } }
private void OnDestroy() { if (_isWriteMd5File) { _checkForUpdate.WriteToLocalFile(_module); } if (_thread != null) { _thread.Stop(); } _checkForUpdate = null; _thread = null; _downloadList = null; _table = null; }