示例#1
0
    static public void Init()
    {
        if (EditorWindow.focusedWindow != null && toggleableWindowTypes.Contains(EditorWindow.focusedWindow.GetType()))
        {
            lastFocusedWindow = EditorWindow.focusedWindow;
        }

        if (EditorWindow.focusedWindow != null && EditorWindow.focusedWindow.GetType() == typeof(UIDEEditorWindow) && lastFocusedWindow != null)
        {
            EditorWindow.FocusWindowIfItsOpen(lastFocusedWindow.GetType());
        }
        else
        {
            UIDEEditorWindow.Get();
        }
    }