Exemple #1
0
 public AssetBundleDownloadOperation(BaseLoaderService baseLoaderService,
                                     string assetBundleName,
                                     string downloadUrl,
                                     Hash128 hash) : base(
         baseLoaderService,
         downloadUrl,
         hash)
 {
     this.assetBundleName = assetBundleName;
 }
Exemple #2
0
 protected BaseAssetBundleDownloadOperation(BaseLoaderService baseLoaderService, string downloadUrl, Hash128 hash)
 {
     BaseLoaderService = baseLoaderService;
     request           = UnityWebRequest.GetAssetBundle(downloadUrl, hash, 0);
     request.Send();
 }
Exemple #3
0
 protected BaseAssetBundleLoadOperation(BaseLoaderService baseLoaderService, string path)
 {
     BaseLoaderService = baseLoaderService;
     createRequest     = AssetBundle.LoadFromFileAsync(path);
 }
Exemple #4
0
 public LocalAssetLoaderFactory(BaseLoaderService baseLoaderService, string rootPath)
 {
     this.baseLoaderService = baseLoaderService;
     this.rootPath          = rootPath;
 }
Exemple #5
0
 public WebAssetLoaderFactory(BaseLoaderService baseLoaderService, string baseUrl)
 {
     this.baseLoaderService = baseLoaderService;
     this.baseUrl           = baseUrl;
 }
Exemple #6
0
 public WaitForAssetBundleToLoad(BaseLoaderService baseLoaderService, string name, Action <IAssetBundleModel> onLoaded)
 {
     this.baseLoaderService = baseLoaderService;
     this.name     = name;
     this.onLoaded = onLoaded;
 }
Exemple #7
0
 protected override void OnLoaded(AssetBundle assetBundle)
 {
     BaseLoaderService.OnAssetBundleLoaded(assetBundleName, assetBundle);
 }
Exemple #8
0
 public AssetBundleLoadOperation(BaseLoaderService baseLoaderService, string path) : base(baseLoaderService, path)
 {
     assetBundleName = Path.GetFileNameWithoutExtension(path);
 }
Exemple #9
0
 protected override void OnLoaded(AssetBundle assetBundle)
 {
     BaseLoaderService.OnManifestAssetBundleLoaded(assetBundle);
 }
Exemple #10
0
 public AssetBundleManifestLoadOperation(BaseLoaderService baseLoaderService, string path) :
     base(baseLoaderService, path)
 {
 }
Exemple #11
0
 public AssetBundleManifestDownloadOperation(BaseLoaderService baseLoaderService, string downloadUrl) : base(
         baseLoaderService,
         downloadUrl)
 {
 }