コード例 #1
0
        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);
        }
コード例 #2
0
 public GcsReadOnlyClient(string bucket, IGcsAccessTokenService gcsAccessTokenService)
 {
     this.bucket = bucket;
     this.gcsAccessTokenService       = gcsAccessTokenService;
     gcsAccessTokenService.AccessType = GcsAccessType.READ_ONLY;
 }
コード例 #3
0
 public GcsReadWriteClient(string bucket, IGcsAccessTokenService gcsAccessTokenService)
     : base(bucket, gcsAccessTokenService)
 {
     gcsAccessTokenService.AccessType = GcsAccessType.READ_WRITE;
     headers.Add("Content-Type", "application/json");
 }
コード例 #4
0
 public CPipeManifestService(string urlRoot, string cpipeMappingFilename, IGcsAccessTokenService gcsAccessTokenService)
 {
     this.urlRoot = urlRoot;
     this.cpipeMappingFilename  = cpipeMappingFilename;
     this.gcsAccessTokenService = gcsAccessTokenService;
 }
コード例 #5
0
 public AssetBundleWwwWrapper(string bundlePath, IGcsAccessTokenService gcsAccessTokenService)
 {
     this.bundlePath            = bundlePath;
     this.gcsAccessTokenService = gcsAccessTokenService;
 }
コード例 #6
0
 public WwwBundleDevice(DeviceManager deviceManager, IGcsAccessTokenService gcsAccessTokenService, ICPipeManifestService cpipeManifestService)
     : base(deviceManager)
 {
     this.gcsAccessTokenService = gcsAccessTokenService;
     this.cpipeManifestService  = cpipeManifestService;
 }
コード例 #7
0
 public MockCPipeManifestServices(IGcsAccessTokenService gcsAccessTokenService)
 {
     cpipeManifestService = new CPipeManifestService(ContentHelper.GetCdnUrl(), ContentHelper.GetCpipeMappingFilename(), gcsAccessTokenService);
 }