//通过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); }
//需要手动释放 protected override void _Destroy() { base._Destroy(); assetBundleLoader = null; }