private void StartDown(string configFile) { ServerDefine.ResUrl thumbUrl = ServerDefine.GetThumbUrl(configFile); PTModuleUpdate.Instance.StartModuleUpdate(thumbUrl.remoteConfigPath, thumbUrl.localConfigPath, thumbUrl.remoteResPath, thumbUrl.localResPath, OnReadyToDownload, OnFinishOneItem, OnUpdateFinish, null, false, true); }
private void StartDown() { ServerDefine.ResUrl resUrl = ServerDefine.GetBlockBotsResUrl(); PTModuleUpdate.Instance.StartModuleUpdate(resUrl.remoteConfigPath, resUrl.localConfigPath, OnReadyToDownload, OnFinishOneItem, OnUpdateFinish, null, true, false); }
protected override void OnBegin() { ServerDefine.ResUrl resUrl = ServerDefine.GetConfigUrl(DIR_CONFIG, "resconfig.json"); PTModuleUpdate.Instance.StartModuleUpdate(resUrl.remoteConfigPath, resUrl.localConfigPath, OnReadyToDownload, null, OnUpdateFinish, null); }