示例#1
0
        private void OnAssetBundleAsyncLoaderFail(AssetBundleAsyncLoader assetBundleAsyncLoader)
        {
            if (!assetBundleAsyncLoaderProcessingList.Contains(assetBundleAsyncLoader))
            {
                return;
            }

            //assetCat的OnFail中反过来回调减引用
        }
示例#2
0
 private void OnAssetBundleAsyncLoaderFail(AssetBundleAsyncLoader assetBundleAsyncLoader)
 {
     if (assetBundleLoader != assetBundleAsyncLoader)
     {
         return;
     }
     resultInfo.isFail = true;
     RemoveListener <AssetBundleAsyncLoader>(null, AssetBundleEventNameConst.On_AssetBundleAsyncLoader_Fail,
                                             OnAssetBundleAsyncLoaderFail);
 }
示例#3
0
 private void OnAssetBundleAsyncLoaderSuccess(AssetBundleAsyncLoader assetBundleAsyncLoader)
 {
     if (assetBundleLoader != assetBundleAsyncLoader)
     {
         return;
     }
     resultInfo.isSuccess = true;
     RemoveListener <AssetBundleAsyncLoader>(null, AssetBundleEventNameConst.On_AssetBundleAsyncLoader_Success,
                                             OnAssetBundleAsyncLoaderSuccess);
 }
示例#4
0
        private void OnAssetBundleAsyncLoaderDone(AssetBundleAsyncLoader assetBundleAsyncLoader)
        {
            if (!assetBundleAsyncLoaderProcessingList.Contains(assetBundleAsyncLoader))
            {
                return;
            }

            // 解除assetBundleAsyncLoader加载器对AB持有的引用
            assetBundleAsyncLoader.assetBundleCat.SubRefCount();
            assetBundleAsyncLoaderProcessingList.Remove(assetBundleAsyncLoader);
        }