Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private void StartDown()
        {
            ServerDefine.ResUrl resUrl = ServerDefine.GetBlockBotsResUrl();


            PTModuleUpdate.Instance.StartModuleUpdate(resUrl.remoteConfigPath, resUrl.localConfigPath,
                                                      OnReadyToDownload, OnFinishOneItem, OnUpdateFinish,
                                                      null, true, false);
        }
Esempio n. 3
0
 protected override void OnBegin()
 {
     ServerDefine.ResUrl resUrl = ServerDefine.GetConfigUrl(DIR_CONFIG, "resconfig.json");
     PTModuleUpdate.Instance.StartModuleUpdate(resUrl.remoteConfigPath, resUrl.localConfigPath, OnReadyToDownload, null,
                                               OnUpdateFinish, null);
 }