Exemplo n.º 1
0
 public void OnDownloadingBegin(IDownloader downloader)
 {
     this.downloader               = downloader;
     this.lastDescriptiveString    = null;
     this.hasDescriptiveDownloader = (this.descriptiveDownloader = downloader as IDownloaderDescriptive) != null;
     this.TaskStatus               = Facepunch.Load.TaskStatus.Downloading;
 }
Exemplo n.º 2
0
        public void OnDownloadingComplete()
        {
            this.TaskStatus = Facepunch.Load.TaskStatus.Complete;
            IDownloader downloader = this.downloader;

            this.downloader               = null;
            this.descriptiveDownloader    = null;
            this.hasDescriptiveDownloader = false;
            this.Loader.OnJobCompleted(this, downloader);
            if (!object.ReferenceEquals(this.Tag, null))
            {
                Debug.LogWarning("Clearing tag manually ( should have been done by the IDownloader during the OnJobComplete callback )");
            }
            this.Tag = null;
        }
Exemplo n.º 3
0
 public void OnDownloadingComplete()
 {
     this.TaskStatus = Facepunch.Load.TaskStatus.Complete;
     IDownloader downloader = this.downloader;
     this.downloader = null;
     this.descriptiveDownloader = null;
     this.hasDescriptiveDownloader = false;
     this.Loader.OnJobCompleted(this, downloader);
     if (!object.ReferenceEquals(this.Tag, null))
     {
         Debug.LogWarning("Clearing tag manually ( should have been done by the IDownloader during the OnJobComplete callback )");
     }
     this.Tag = null;
 }
Exemplo n.º 4
0
 public void OnDownloadingBegin(IDownloader downloader)
 {
     this.downloader = downloader;
     this.lastDescriptiveString = null;
     IDownloaderDescriptive downloaderDescriptive = downloader as IDownloaderDescriptive;
     IDownloaderDescriptive downloaderDescriptive1 = downloaderDescriptive;
     this.descriptiveDownloader = downloaderDescriptive;
     this.hasDescriptiveDownloader = downloaderDescriptive1 != null;
     this.TaskStatus = Facepunch.Load.TaskStatus.Downloading;
 }