Exemple #1
0
        // サブウィンドウを開く
        public static MapEditorSub WillAppear(MapEditorMain _parent)
        {
            MapEditorSub window = (MapEditorSub)EditorWindow.GetWindow(typeof(MapEditorSub), false);

            window.Show();
            window.minSize = new Vector2(MapEditorMain.WINDOW_W, MapEditorMain.WINDOW_H);
            window.SetParent(_parent);
            window.ResetUndoPerformed();
            window.Init();
            return(window);
        }
        void OpenMapEditor()
        {
            if (m_subWindow != null)
            {
                m_subWindow.Close();
            }

            if (m_subWindow == null)
            {
                m_subWindow = MapEditorSub.WillAppear(this);
            }
            else
            {
                m_subWindow.Focus();
            }
            m_subWindow.Init();

            AssetDatabase.Refresh();
        }