void OnEnable() { if (s_SharedMinMaxCurveEditor && s_SharedMinMaxCurveEditor != this) s_SharedMinMaxCurveEditor.Close(); s_SharedMinMaxCurveEditor = this; Init(null); }
void OnDisable() { m_CurveEditor.OnDisable(); if (s_SharedMinMaxCurveEditor == this) { s_SharedMinMaxCurveEditor = null; } }