예제 #1
0
 private static JokerToolEditor GetOpenEditor()
 {
     if (null == m_instance)
     {
         m_instance = EditorWindow.GetWindow <JokerToolEditor>("Character Tool");
     }
     return(m_instance);
 }
예제 #2
0
    void OnDisable()
    {
        if (m_instance == null)
        {
            return;
        }

        m_instance = null;

        EditorApplication.playmodeStateChanged -= OnPlaymodeStateChanged;

        OnDisableCharacterView();
    }
예제 #3
0
    void OnEnable()
    {
        if (m_instance != null)
        {
            return;
        }

        m_instance = this;

        EditorApplication.playmodeStateChanged += OnPlaymodeStateChanged;

        OnEnableCharacterView();
    }
예제 #4
0
    public static void RefreshPanel()
    {
        JokerToolEditor panel = GetOpenEditor();

        panel.ShowPopup();
    }