public CheckForUpdate(string module, CheckForUpdateTable table) { this._table = table; new DownloadMd5File(VersionHelp.version, module, (Queue <DownloadConfig> list) => { if (list == null) { this._table.Error(module); } else { this._table.Complete(module, list.Count); } }); }
public void CheckModule(string module) { if (string.IsNullOrEmpty(module)) { return; } if (G_Table == null) { G_Table = LuaEnvMgr.Instance.LuaEnv.Global.Get <CheckForUpdateTable>("G_CheckForUpdateMgr"); } if (GameConfig.gameModel == GameModel.Editor) { G_Table.Complete(module, 0); return; } new CheckForUpdate(module, G_Table); }
private void OnDestroy() { G_Table = null; _instance = null; }