private void OnValidate()
 {
     if (m_Instance != null)
     {
         EditorWindow.Destroy(m_Instance);
     }
 }
Example #2
0
    private static void Open()
    {
        if (m_Instance != null)
        {
            EditorWindow.Destroy(m_Instance);
        }

        m_Instance = EditorWindow.GetWindow <GUIBindWindow>();
        m_Instance.OnInit();
    }