private void OnValidate() { if (m_Instance != null) { EditorWindow.Destroy(m_Instance); } }
private static void Open() { if (m_Instance != null) { EditorWindow.Destroy(m_Instance); } m_Instance = EditorWindow.GetWindow <GUIBindWindow>(); m_Instance.OnInit(); }