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);
        }
Beispiel #2
0
 public GcsReadOnlyClient(string bucket, IGcsAccessTokenService gcsAccessTokenService)
 {
     this.bucket = bucket;
     this.gcsAccessTokenService       = gcsAccessTokenService;
     gcsAccessTokenService.AccessType = GcsAccessType.READ_ONLY;
 }
Beispiel #3
0
 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;
 }
Beispiel #5
0
 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;
 }
Beispiel #7
0
 public MockCPipeManifestServices(IGcsAccessTokenService gcsAccessTokenService)
 {
     cpipeManifestService = new CPipeManifestService(ContentHelper.GetCdnUrl(), ContentHelper.GetCpipeMappingFilename(), gcsAccessTokenService);
 }