Beispiel #1
0
 /// <summary>
 /// 从CDN加载资源信息
 /// </summary>
 /// <param name="args"></param>
 private void OnLoadAssetInfoFromCDN(HttpCallBackArgs args)
 {
     if (!args.HasError)
     {
         InitAssetInfo(args.Data);
     }
     else
     {
         GameEntry.Log(LogCategory.Resource, args.Value);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 初始化CDN资源包信息回调
 /// </summary>
 /// <param name="args"></param>
 private void OnInitCDNAssetBundleInfo(HttpCallBackArgs args)
 {
     if (!args.HasError)
     {
         m_CDNVersionDic = GetAssetBundleVersionList(args.Data, ref m_CDNVersion);
         GameEntry.Log(LogCategory.Resource, "cdn资源包总数" + m_CDNVersionDic.Count);
         CheckVersionFileExistsInLocal();
     }
     else
     {
         GameEntry.Log(LogCategory.Resource, args.Value);
     }
 }
Beispiel #3
0
 private void WebPostCallBack(HttpCallBackArgs args)
 {
     GameEntry.Procedure.ChangeState(ProcedureState.CheckVersion);
 }
Beispiel #4
0
 private void WebGetCallBack(HttpCallBackArgs args)
 {
     Debug.Log("haserror = " + args.HasError);
     Debug.Log("value = " + args.Value);
 }
Beispiel #5
0
 public HttpRoutine()
 {
     m_CallBackArgs = new HttpCallBackArgs();
 }