private void OnAssetBundleAsyncLoaderFail(AssetBundleAsyncLoader assetBundleAsyncLoader) { if (!assetBundleAsyncLoaderProcessingList.Contains(assetBundleAsyncLoader)) { return; } //assetCat的OnFail中反过来回调减引用 }
private void OnAssetBundleAsyncLoaderFail(AssetBundleAsyncLoader assetBundleAsyncLoader) { if (assetBundleLoader != assetBundleAsyncLoader) { return; } resultInfo.isFail = true; RemoveListener <AssetBundleAsyncLoader>(null, AssetBundleEventNameConst.On_AssetBundleAsyncLoader_Fail, OnAssetBundleAsyncLoaderFail); }
private void OnAssetBundleAsyncLoaderSuccess(AssetBundleAsyncLoader assetBundleAsyncLoader) { if (assetBundleLoader != assetBundleAsyncLoader) { return; } resultInfo.isSuccess = true; RemoveListener <AssetBundleAsyncLoader>(null, AssetBundleEventNameConst.On_AssetBundleAsyncLoader_Success, OnAssetBundleAsyncLoaderSuccess); }
private void OnAssetBundleAsyncLoaderDone(AssetBundleAsyncLoader assetBundleAsyncLoader) { if (!assetBundleAsyncLoaderProcessingList.Contains(assetBundleAsyncLoader)) { return; } // 解除assetBundleAsyncLoader加载器对AB持有的引用 assetBundleAsyncLoader.assetBundleCat.SubRefCount(); assetBundleAsyncLoaderProcessingList.Remove(assetBundleAsyncLoader); }