Ejemplo n.º 1
0
 public void UploadAllAssetBundles()
 {
     this.m_PendingUploadsAssetPath = this.m_AssetBundleFiles.Keys.ToList <string>();
     this.m_MainAssetsProgress      = new List <double>(this.m_MainAssets.Count);
     this.m_ErrorMessages           = null;
     this.m_ProgressDirty           = false;
     this.m_CachedProgressValue     = 0;
     foreach (string mPendingUploadsAssetPath in this.m_PendingUploadsAssetPath)
     {
         string item             = this.m_AssetBundleFiles[mPendingUploadsAssetPath];
         string uploadBundlePath = AssetStoreAPI.GetUploadBundlePath(this.m_AssetStorePackageController.SelectedPackage, mPendingUploadsAssetPath);
         AssetStoreAPI.UploadBundle(uploadBundlePath, item, new AssetStoreAPI.UploadBundleCallback(this.OnFinishUploadBundle), this.OnBundleProgress(mPendingUploadsAssetPath));
         this.m_MainAssetsProgress.Add(0);
     }
 }