public TurnState UpdateSystemMenu(TurnState state)
    {
        if (CommonFunction.IsNull(UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject) == false)
        {
            bool   isError = false;
            string target  = "";
            try
            {
                target = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;
            }
            catch (MissingReferenceException)
            {
                isError = true;
            }

            if (isError == false)
            {
                if (target == "SystemInputFieldMoveUp")
                {
                    SetKeyInfoField(SystemMoveUpHeader, KeyType.MoveUp);
                }
                else if (target == "SystemInputFieldMoveDown")
                {
                    SetKeyInfoField(SystemMoveDownHeader, KeyType.MoveDown);
                }
                else if (target == "SystemInputFieldMoveLeft")
                {
                    SetKeyInfoField(SystemMoveLeftHeader, KeyType.MoveLeft);
                }
                else if (target == "SystemInputFieldMoveRight")
                {
                    SetKeyInfoField(SystemMoveRightHeader, KeyType.MoveRight);
                }
                else if (target == "SystemInputFieldMoveSlash")
                {
                    SetKeyInfoField(SystemMoveSlashHeader, KeyType.XMove);
                }
                else if (target == "SystemInputFieldDir")
                {
                    SetKeyInfoField(SystemDirHeader, KeyType.ChangeDirection);
                }
                else if (target == "SystemInputFieldDeathBlow")
                {
                    SetKeyInfoField(SystemDeathBlowHeader, KeyType.DeathBlow);
                }
                else if (target == "SystemInputFieldMenu")
                {
                    SetKeyInfoField(SystemMenuHeader, KeyType.MenuOpen);
                }
                else if (target == "SystemInputFieldMlog")
                {
                    SetKeyInfoField(SystemMlogHeader, KeyType.MessageLog);
                }
                else if (target == "SystemInputFieldDash")
                {
                    SetKeyInfoField(SystemDashHeader, KeyType.Dash);
                }
                else if (target == "SystemInputFieldAttack")
                {
                    SetKeyInfoField(SystemAttackHeader, KeyType.Attack);
                }
                else if (target == "SystemInputFieldIdle")
                {
                    SetKeyInfoField(SystemIdleHeader, KeyType.Idle);
                }
                else if (target == "SystemInputFieldDisplay")
                {
                    SetKeyInfoField(SystemKeyDisplayHeader, KeyType.KeyDisplay);
                }
                else if (target == "SystemInputFieldOk")
                {
                    SetKeyInfoMenu(SystemOkHeader, KeyType.MenuOk);
                }
                else if (target == "SystemInputFieldCancel")
                {
                    SetKeyInfoMenu(SystemCancelHeader, KeyType.MenuCancel);
                }
                else if (target == "SystemInputFieldOption")
                {
                    SetKeyInfoMenu(SystemOptionHeader, KeyType.LookOption);
                }
                else if (target == "SystemInputFieldSort")
                {
                    SetKeyInfoMenu(SystemSortHeader, KeyType.ItemSort);
                }
                else if (target == "SystemInputFieldMultiSelect")
                {
                    SetKeyInfoMenu(SystemMultiSelectHeader, KeyType.MenuMultiSelectOk);
                }
                else if (target == "SystemInputFieldDTop")
                {
                    SetVertical();
                }
                else if (target == "SystemInputFieldDLeft")
                {
                    SetHorizontal();
                }
            }
        }
        //閉じる
        else if (Input.GetKeyDown(KeyControlInformation.Info.MenuCancel))
        {
            IsClose = true;
        }
        if (IsClose == true)
        {
            //データを保存
            SystemInformation s = new SystemInformation();
            s.CharacterName = pl.DisplayName;
            s.IsBgm         = MusicInformation.Music.IsMusicOn;
            s.BGMVolume     = CommonFunction.PercentToInt(MusicInformation.Music.Volume);
            s.IsSound       = SoundInformation.Sound.IsPlay;
            s.SoundVolume   = CommonFunction.PercentToInt(SoundInformation.Sound.Volume);
            s.IsVoice       = VoiceInformation.Voice.IsPlay;
            s.VoiceVolume   = CommonFunction.PercentToInt(VoiceInformation.Voice.Volume);
            SaveDataInformation.SaveValue(KeyControlInformation.Info);
            SaveDataInformation.SaveValue(s);
            SaveDataInformation.Submit();

            //Debug.Log(temp.GetJsonData());

            //サウンドを鳴らす
            SoundInformation.Sound.Play(SoundInformation.SoundType.MenuCancel);
            SystemPanel.SetActive(false);
            state = TurnState.FirstMenu;
        }

        return(state);
    }