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); } }); }
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(); }