public override AssetBundleLoadRequest LoadAssetBundleAsync(AssetBundleHolder assetBundleHolder)
        {
            var path    = GetAssetBundleResourcePath(assetBundleHolder.Name);
            var request = new AssetBundleODRLoadRequest(assetBundleHolder, path, _odrTag);

            request.OnCompleted += loadRequest => {
                ResourceDebug.Log("{0}->LoadAssetBundleAsync: request finish: name {1}, same {2}, done {3}, path {4}",
                                  GetType().Name, assetBundleHolder.Name, loadRequest == request, request.IsDone, path);
                if (loadRequest == request)
                {
                    assetBundleHolder.OnUnload += () => request.Dispose();
                }
            };

            return(request);
        }
        public override AssetBundleLoadRequest LoadAssetBundleAsync(AssetBundleHolder assetBundleHolder)
        {
            var path = GetAssetBundlePath(assetBundleHolder.Name);

            return(new AssetBundlePathLoadRequest(assetBundleHolder, path));
        }
        public override AssetBundle LoadAssetBundle(AssetBundleHolder assetBundleHolder)
        {
            var path = GetAssetBundlePath(assetBundleHolder.Name);

            return(AssetBundle.LoadFromFile(path));
        }
 public abstract AssetBundleLoadRequest LoadAssetBundleAsync(AssetBundleHolder assetBundleHolder);
 public override AssetBundle LoadAssetBundle(AssetBundleHolder assetBundleHolder)
 {
     return(null);
 }
        public override AssetBundleLoadRequest LoadAssetBundleAsync(AssetBundleHolder assetBundleHolder)
        {
            var uri = GetAssetBundleUri(assetBundleHolder.Name);

            return(new AssetBundleUriLoadRequest(assetBundleHolder, uri));
        }
 public abstract AssetBundle LoadAssetBundle(AssetBundleHolder assetBundleHolder);
 protected AssetBundleLoadRequest(AssetBundleHolder holder)
 {
     _holder = holder;
     InitDependenciesRequest(_holder.Dependencies);
     _isDependenciesLoading = true;
 }
 public AssetBundleODRLoadRequest(AssetBundleHolder holder, string resPath, string odrTag) : base(holder)
 {
     _odrTag  = odrTag;
     _resPath = resPath;
 }
 public AssetBundleUriLoadRequest(AssetBundleHolder holder, string uri) : base(holder)
 {
     _uri = uri;
 }
 public AssetBundlePathLoadRequest(AssetBundleHolder holder, string path) : base(holder)
 {
     _path = path;
 }