private void SwitchMode(BuildMode mode)
        {
            _currentMode = mode;
            BuildScriptPrefs.SetCurrentMode(_currentMode);

            base.Repaint();
            GUIUtility.ExitGUI();
        }