Esempio n. 1
0
 public void CleanUp()
 {
     if (null != mDownLoadMgr)
     {
         mDownLoadMgr.Destroy();
         mDownLoadMgr = null;
     }
 }
Esempio n. 2
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);
     });
 }