Exemple #1
0
    private void OnUpLoadCallBack(HttpHelperRet ret, object data)
    {
        upLoad = false;
        var callBack = data as HttpCallBack;

        if (callBack != null)
        {
            callBack.SetHttpHelperRet(ret);
            HttpCallBackList.Add(callBack);
        }
    }
Exemple #2
0
 private void OnDownLoadSAbCallBack(HttpHelperRet ret, object data)
 {
     if (ret.isOk)
     {
         Game.Instance.StartCoroutine(CheckResVersion());
     }
     else
     {
         resManagerState = ResManagerState.EError;
         init            = true;
         if (GMManager.IsInEditor)
         {
             Debug.LogError(string.Format("{0}\nlog: {1}", ret.isOk, ret.log));
         }
     }
 }
Exemple #3
0
    private void OnDownLoadAbCallBack(HttpHelperRet ret, object data)
    {
        if (GMManager.IsInEditor)
        {
            Debug.Log("已下载: " + ret.isOk + " " + ret.log);
        }
        if (!HttpManager.Instance.DownLoadEnd())
        {
            return;
        }
        resManagerState = ResManagerState.EFree;
        var _cabPath = string.Format("{0}{1}", LocalAssetbundlePath, "AssetBundles_old");
        var _sabPath = string.Format("{0}{1}", LocalAssetbundlePath, "AssetBundles");
        var fileInfo = new FileInfo(_sabPath);

        fileInfo.CopyTo(_cabPath, true);
        init = true;
    }
Exemple #4
0
 public void SetHttpHelperRet(HttpHelperRet ret)
 {
     this.ret = ret;
 }
Exemple #5
0
 public HttpCallBack(HttpHelperCallBack mHttpHelperCallBack, object data = null, HttpHelperRet ret = null)
 {
     this.mHttpHelperCallBack = mHttpHelperCallBack;
     this.data = data;
     this.ret  = ret;
 }