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(); }