コード例 #1
0
        //通过AssetBundleLoader获取
        public void Init(AssetCat assetCat, BaseAssetBundleAsyncLoader assetBundleLoader)
        {
            this.assetCat          = assetCat;
            this.assetBundleLoader = assetBundleLoader;

            AddListener <AssetBundleAsyncLoader>(null, AssetBundleEventNameConst.On_AssetBundleAsyncLoader_Fail,
                                                 OnAssetBundleAsyncLoaderFail);
            AddListener <AssetBundleAsyncLoader>(null, AssetBundleEventNameConst.On_AssetBundleAsyncLoader_Success,
                                                 OnAssetBundleAsyncLoaderSuccess);
        }
コード例 #2
0
 //需要手动释放
 protected override void _Destroy()
 {
     base._Destroy();
     assetBundleLoader = null;
 }