Exemple #1
0
    private void OnDestroy()
    {
        Selection.selectionChanged -= selectionChange;
        EditorApplication.hierarchyWindowChanged += hierarchyWindowChanged;
        PrefabUtility.prefabInstanceUpdated      -= prefabeInstanceUpdated;

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

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