public void LoadAssetBundleAsync(string abPath, Action <AssetBundle> callback, Action <float> progressCallback) { LoadDepAssetBundleAsync(abPath, () => { _loader.LoadAssetBundleAsync(abPath, callback, (progress) => { progressCallback?.Invoke(progress * 0.5f + 0.5f); }); }, (progress) => { progressCallback?.Invoke(progress * 0.5f); }); }
/// <summary> /// 异步加载AB包 /// </summary> /// <param name="abPath">ab包路径</param> /// <param name="callback">ab包加载回调</param> /// <param name="progressCallback">进度回调</param> public void LoadAssetBundleAsync(string abPath, Action <AssetBundle> callback, Action <float> progressCallback) { _loader?.LoadAssetBundleAsync(abPath, callback, progressCallback); }