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; }
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; }
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; }
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; }