private static JokerToolEditor GetOpenEditor() { if (null == m_instance) { m_instance = EditorWindow.GetWindow <JokerToolEditor>("Character Tool"); } return(m_instance); }
void OnDisable() { if (m_instance == null) { return; } m_instance = null; EditorApplication.playmodeStateChanged -= OnPlaymodeStateChanged; OnDisableCharacterView(); }
void OnEnable() { if (m_instance != null) { return; } m_instance = this; EditorApplication.playmodeStateChanged += OnPlaymodeStateChanged; OnEnableCharacterView(); }
public static void RefreshPanel() { JokerToolEditor panel = GetOpenEditor(); panel.ShowPopup(); }