Пример #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;
 }