public override AssetRequest <TAsset> LoadAsync <TAsset>(string deviceList, ref ContentManifest.AssetEntry entry, AssetLoadedHandler <TAsset> handler = null) { gcsAccessTokenService = Service.Get <IGcsAccessTokenService>(); string bundlePath = UriUtil.Combine(baseUri, entry.Key); AssetBundleWwwWrapper assetBundleWwwWrapper = new AssetBundleWwwWrapper(bundlePath, gcsAccessTokenService); AsyncBundleWwwRequest <TAsset> result = new AsyncBundleWwwRequest <TAsset>(entry.Key, assetBundleWwwWrapper); CoroutineRunner.StartPersistent(waitForBundleToLoad(assetBundleWwwWrapper, handler, entry.IsCacheOnly), this, "Local_waitForBundleToLoad"); return(result); }
public GcsReadOnlyClient(string bucket, IGcsAccessTokenService gcsAccessTokenService) { this.bucket = bucket; this.gcsAccessTokenService = gcsAccessTokenService; gcsAccessTokenService.AccessType = GcsAccessType.READ_ONLY; }
public GcsReadWriteClient(string bucket, IGcsAccessTokenService gcsAccessTokenService) : base(bucket, gcsAccessTokenService) { gcsAccessTokenService.AccessType = GcsAccessType.READ_WRITE; headers.Add("Content-Type", "application/json"); }
public CPipeManifestService(string urlRoot, string cpipeMappingFilename, IGcsAccessTokenService gcsAccessTokenService) { this.urlRoot = urlRoot; this.cpipeMappingFilename = cpipeMappingFilename; this.gcsAccessTokenService = gcsAccessTokenService; }
public AssetBundleWwwWrapper(string bundlePath, IGcsAccessTokenService gcsAccessTokenService) { this.bundlePath = bundlePath; this.gcsAccessTokenService = gcsAccessTokenService; }
public WwwBundleDevice(DeviceManager deviceManager, IGcsAccessTokenService gcsAccessTokenService, ICPipeManifestService cpipeManifestService) : base(deviceManager) { this.gcsAccessTokenService = gcsAccessTokenService; this.cpipeManifestService = cpipeManifestService; }
public MockCPipeManifestServices(IGcsAccessTokenService gcsAccessTokenService) { cpipeManifestService = new CPipeManifestService(ContentHelper.GetCdnUrl(), ContentHelper.GetCpipeMappingFilename(), gcsAccessTokenService); }