private void OnUpLoadCallBack(HttpHelperRet ret, object data) { upLoad = false; var callBack = data as HttpCallBack; if (callBack != null) { callBack.SetHttpHelperRet(ret); HttpCallBackList.Add(callBack); } }
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)); } } }
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; }
public void SetHttpHelperRet(HttpHelperRet ret) { this.ret = ret; }
public HttpCallBack(HttpHelperCallBack mHttpHelperCallBack, object data = null, HttpHelperRet ret = null) { this.mHttpHelperCallBack = mHttpHelperCallBack; this.data = data; this.ret = ret; }