Exemple #1
0
 public static void HandleNoSession(string displayName)
 {
     UploadingBuildsMonitor.Activate();
     AssetStoreLoginWindow.Login(UploadingBuildsMonitor.s_Content.m_NoSessionDialogText.text, delegate(string errorMessage)
     {
         if (string.IsNullOrEmpty(errorMessage))
         {
             UploadingBuildsUtility.ResumeBuildUpload(displayName);
         }
         else
         {
             UploadingBuildsUtility.RemoveUploadingBuild(displayName);
         }
     });
 }
Exemple #2
0
 private void Update()
 {
     if (!this.m_DidInit)
     {
         this.SyncToState();
         this.m_DidInit = true;
     }
     this.UploadSmoothing();
     if (this.m_UploadingBuilds.Length > 0)
     {
         this.UpdateBuild(ref this.m_UploadingBuilds[0]);
     }
     else
     {
         UploadingBuildsMonitor.Deactivate();
     }
 }
		private void OnDisable()
		{
			UploadingBuildsMonitor.s_UploadingBuildsMonitor = null;
			EditorApplication.update = (EditorApplication.CallbackFunction)Delegate.Remove(EditorApplication.update, new EditorApplication.CallbackFunction(this.Update));
		}
		private void OnEnable()
		{
			UploadingBuildsMonitor.s_UploadingBuildsMonitor = this;
			EditorApplication.update = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.update, new EditorApplication.CallbackFunction(this.Update));
			this.SyncToState();
		}
Exemple #5
0
 private void OnDisable()
 {
     UploadingBuildsMonitor.s_UploadingBuildsMonitor = null;
     EditorApplication.update = (EditorApplication.CallbackFunction)Delegate.Remove(EditorApplication.update, new EditorApplication.CallbackFunction(this.Update));
 }
Exemple #6
0
 private void OnEnable()
 {
     UploadingBuildsMonitor.s_UploadingBuildsMonitor = this;
     EditorApplication.update = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.update, new EditorApplication.CallbackFunction(this.Update));
     this.SyncToState();
 }