Exemple #1
0
 private void LoadHotfixFiles(List <IDownloadItem> files)
 {
     if (_isStartDownloadHotfixFile || files == null || files.Count == 0)
     {
         EnterGame();
     }
     _isStartDownloadHotfixFile = true;
     View.SetText(I18NManager.Get("Update_FileDownloading"));
     DownloadManager.AddList(files);
     DownloadManager.SetQueueCallback(
         (per) => {
         int iPer = (int)per * 100;
         View.SetText(I18NManager.Get("Update_FileDownloading") + iPer.ToString() + "%");
         OnLoadHotfixConfigProgress(per);
     }, null);
     DownloadManager.StartQueue(_hotVersionPb.Addr + "hotfix_" +
                                _hotVersionPb.Version + "/v" +
                                _hotVersionPb.HotVersion + "/");
 }