コード例 #1
0
 public void Download(string module, Queue <DownloadConfig> list, CheckForUpdate checkForUpdate, DownloadModuleTable table)
 {
     _table          = table;
     _downloadList   = list;
     _module         = module;
     _checkForUpdate = checkForUpdate;
     if (_downloadList.Count > 0)
     {
         _downloadCount  = _downloadList.Count;
         _isWriteMd5File = true;
         _thread         = new ThreadDownload(_downloadList);
         _thread.Start();
     }
 }
コード例 #2
0
 private void OnDestroy()
 {
     if (_isWriteMd5File)
     {
         _checkForUpdate.WriteToLocalFile(_module);
     }
     if (_thread != null)
     {
         _thread.Stop();
     }
     _checkForUpdate = null;
     _thread         = null;
     _downloadList   = null;
     _table          = null;
 }