public void OnDisable() { AssetStoreAsset.PreviewInfo info = m_Asset == null ? null : m_Asset.previewInfo; if (info != null) { info.downloadProgress = -1f; info.buildProgress = -1; } AssetStoreUtils.UnRegisterDownloadDelegate(this); m_Purchasing = PurchaseStatus.Init; }
public void OnDisable() { AssetStoreAsset.PreviewInfo previewInfo = (this.m_Asset != null) ? this.m_Asset.previewInfo : null; if (previewInfo != null) { previewInfo.downloadProgress = -1f; previewInfo.buildProgress = -1f; } AssetStoreUtils.UnRegisterDownloadDelegate(this); this.m_Purchasing = AssetStoreInstaBuyWindow.PurchaseStatus.Init; }
public void OnDisable() { EditorApplication.update = (EditorApplication.CallbackFunction)Delegate.Remove(EditorApplication.update, new EditorApplication.CallbackFunction(this.Update)); if (this.m_PreviewEditor != null) { this.m_PreviewEditor.Dispose(); this.m_PreviewEditor = null; } if (this.m_PreviewObject != null) { this.m_PreviewObject = null; } AssetStoreUtils.UnRegisterDownloadDelegate(this); }
public void OnDisable() { EditorApplication.update -= Update; if (m_PreviewEditor != null) { m_PreviewEditor.Dispose(); m_PreviewEditor = null; } if (m_PreviewObject != null) { m_PreviewObject = null; } AssetStoreUtils.UnRegisterDownloadDelegate(this); }
public void OnDisable() { EditorApplication.update -= new EditorApplication.CallbackFunction(this.Update); if (this.m_PreviewEditor != null) { this.m_PreviewEditor.Dispose(); this.m_PreviewEditor = (EditorWrapper)null; } if (this.m_PreviewObject != (Object)null) { this.m_PreviewObject = (Object)null; } AssetStoreUtils.UnRegisterDownloadDelegate((ScriptableObject)this); }
public void OnDisable() { AssetStoreUtils.UnRegisterDownloadDelegate(this); }
public void OnDisable() { EditorApplication.update -= TrackFocusState; AssetStoreUtils.UnRegisterDownloadDelegate(this); }
public void OnDisable() { AssetStoreUtils.UnRegisterDownloadDelegate((ScriptableObject)this); }