コード例 #1
0
    // Token: 0x0600512F RID: 20783 RVA: 0x001BB540 File Offset: 0x001B9940
    private IEnumerator RequestLocalAssetBundleCoroutine(AssetBundleDownload download)
    {
        WWW www = new WWW(download.assetUrl);

        www.threadPriority = UnityEngine.ThreadPriority.Normal;
        while (!www.isDone)
        {
            download.OnDownloadProgress(null, www.bytesDownloaded, www.size);
            yield return(null);
        }
        download.currentState = AssetBundleDownload.State.HttpResponseReceived;
        if (!string.IsNullOrEmpty(www.error) || !this.mAssetBundleDownloads.ContainsKey(www.url))
        {
            download.OnDownloadError(www.error, LoadErrorReason.ConnectionError);
        }
        else
        {
            this.OnLocalAssetBundleRequestCompleted(www);
        }
        yield break;
    }