Пример #1
0
 public void BeginDownload(ServerFileInfo serverInfo)
 {
     mDownLoadMgr = new NewFileSystem.FileDownloadManager();
     mDownLoadMgr.Init();
     mDownLoadMgr.BeginSynchronize(serverInfo, delegate() {
         mPersistentFileListDic = new Dictionary <string, FileDetailInfo>(mDownLoadMgr.GetPersistentFileList());
         Dictionary <string, FileDetailInfo> streamingFileListDic = mDownLoadMgr.GetStreamingFileList();
         if (null != streamingFileListDic)
         {
             mStreamingFileListDic = new Dictionary <string, FileDetailInfo>(streamingFileListDic);
         }
         mDownLoadMgr.Destroy();
         mDownLoadMgr = null;
         GameMain.Instance.EventMgr.PostObjectEvent(EventId.DownLoadFinish, null);
     });
 }