public override void OnGUI(Rect rect) { this.InitIfNeeded(); this.m_CurveLibraryEditor.OnGUI(rect, this.m_Curve); if (this.m_WantsToClose) { base.editorWindow.Close(); } }