示例#1
0
 protected override void OnRelease()
 {
     base.OnRelease();
     if (_assetBundle != null)
     {
         _assetBundle.Unload(true);
         _assetBundle = null;
     }
     if (_stream != null)
     {
         _stream.Close();
         _stream.Dispose();
         _stream = null;
     }
     if (_provider != null)
     {
         _provider.Unload(this);
         _provider = null;
     }
 }
示例#2
0
 public UFileListBundle(BundleAssetProvider provider, Manifest.BundleInfo bundleInfo)
     : base(bundleInfo)
 {
     _provider = provider;
 }
示例#3
0
 public UAssetBundleBundle(BundleAssetProvider provider, Manifest.BundleInfo bundleInfo, EAssetHints hints)
     : base(bundleInfo)
 {
     _hints    = hints;
     _provider = provider;
 }
示例#4
0
 public UZipArchiveBundle(BundleAssetProvider provider, Manifest.BundleInfo bundleInfo)
     : base(bundleInfo)
 {
     _provider = provider;
 }