DisposeAll() публичный Метод

释放当前的AssetBundle镜像资源和内存资源
public DisposeAll ( ) : void
Результат void
 public void DisposeAll()
 {
     if (assetLoader != null)
     {
         assetLoader.DisposeAll();
     }
 }
 /// <summary>
 /// 卸载AssetBundle的镜像资源和内存资源
 /// </summary>
 public void DisposeAll() {
     if (_assetLoader != null) {
         _assetLoader.DisposeAll();
         _assetLoader = null;
     }
     else {
         Debug.LogError($"{GetType()}/DisposeAll方法因为资源加载器没有赋值故此无法卸载回收相应资源");
     }
 }
 /// <summary>
 /// 释放所有资源
 /// </summary>
 public void DisposeAll()
 {
     if (_AssetLoader != null)
     {
         _AssetLoader.DisposeAll();
         _Loaded      = false;
         _Loading     = false;
         _AssetLoader = null;
     }
     else
     {
         Debug.LogError(GetType() + ":_AssetLoader is null");
     }
 }