private IEnumerator InternalDownloadAssets(AssetDownloader.DownloadState state, bool checkUpdates, bool isRetry, ThreadPriority threadPriority) { // ISSUE: object of a compiler-generated type is created return((IEnumerator) new AssetDownloader.\u003CInternalDownloadAssets\u003Ec__Iterator44() { checkUpdates = checkUpdates, isRetry = isRetry, threadPriority = threadPriority, state = state, \u003C\u0024\u003EcheckUpdates = checkUpdates, \u003C\u0024\u003EisRetry = isRetry, \u003C\u0024\u003EthreadPriority = threadPriority, \u003C\u0024\u003Estate = state, \u003C\u003Ef__this = this }); }
public static AssetDownloader.DownloadState StartTextDownload(bool checkUpdates, bool canRetry = true, ThreadPriority threadPriority = ThreadPriority.Normal) { if (AssetDownloader.mCoroutine != null || !checkUpdates && AssetDownloader.mRequestIDs.Count == 0 || AssetDownloader.mDownloadedText) { return((AssetDownloader.DownloadState)null); } if (AssetManager.Format != AssetManager.AssetFormats.Text) { AssetDownloader.mCachePath = AssetDownloader.mTextCachePath; AssetManager.Format = AssetManager.AssetFormats.Text; } AssetDownloader.DownloadState state = new AssetDownloader.DownloadState(); AssetDownloader.mRetryOnError = canRetry; AssetDownloader.mCoroutine = AssetDownloader.Instance.StartCoroutine(AssetDownloader.Instance.InternalDownloadAssets(state, checkUpdates, false, threadPriority)); return(state); }