private void OnDestroy() { if (m_instance == this) { m_instance = null; RuntimeEditorApplication.Reset(); EditorsMap.Reset(); } Unsubscribe(); }