Exemple #1
0
 /// <summary>
 /// 热更资源列表下载完成回调
 /// </summary>
 /// <param name="url"></param>
 /// <param name="requeststatus"></param>
 private void resourceListHotUpdateCompleteCB(string url, TWebRequest.WebRequestStatus requeststatus)
 {
     //TODO:
     if (mTestHotUpdateResourceList.Count > 0)
     {
         AssetBundlePath.CheckAndCreateABOutterPathFolder();
         //StartCoroutine(resourcesRequest());
         TWebRequest twr = new TWebRequest();
         foreach (var res in mTestHotUpdateResourceList)
         {
             var finalurl = TestResourceURL + res;
             twr.enqueue(finalurl, singleResourceHotUpdateCompleteCB);
         }
         twr.startRequest();
     }
     else
     {
         DIYLog.Log("没有热更资源需要下载!资源热更完成!");
         mResourceHotUpdateCompleteCB(HotUpdateResourceCode, true);
     }
 }
Exemple #2
0
 /// <summary>
 /// 单个资源热更下载完成回调
 /// </summary>
 /// <param name="url"></param>
 /// <param name="requeststatus"></param>
 private void singleResourceHotUpdateCompleteCB(string url, TWebRequest.WebRequestStatus requeststatus)
 {
     //mHotUpdateResourceProgress =
 }