private void SetHUDVisible(GameModeType gameMode)
        {
            // GroupController.Instance can be null
            GroupController groupControllerInstance = GroupController.Instance;

            if (groupControllerInstance == null)
            {
                this.alias_HUDController.SetState(UISectionHUDController.HUDState.AllVisible);
                return;
            }

            switch (gameMode)
            {
            case GameModeType.Dialog:
            case GameModeType.Cutscene:
                this.alias_HUDController.SetState(UISectionHUDController.HUDState.Hidden);
                groupControllerInstance.HideAnimation(true);
                break;

            case GameModeType.FullScreenUi:
                this.alias_HUDController.SetState(UISectionHUDController.HUDState.Hidden);
                groupControllerInstance.CheckVisibleByType();
                break;

            case GameModeType.EscMode:
                break;

            case GameModeType.Rest:
                this.alias_HUDController.SetState(UISectionHUDController.HUDState.OnlyLog);
                groupControllerInstance.HideAnimation(true);
                break;

            default:
                this.alias_HUDController.SetState(UISectionHUDController.HUDState.AllVisible);
                groupControllerInstance.HideAnimation(this.alias_m_FullScreenUiShown);
                break;
            }
        }