void OnClickSelectBtInZhujiemian() { ReadGameInfo conf = ReadGameInfo.GetInstance(); switch (GameSetSt) { case GameSet.CoinStart: // 启动币数 { int CoinNum = Convert.ToInt32(m_CoinForStar.text); CoinNum++; if (CoinNum > 9) { CoinNum = 1; } m_CoinForStar.text = CoinNum.ToString(); conf.WriteStarCoinNumSet(CoinNum.ToString()); break; } case GameSet.OperMode: // 运营模式 { m_GameModeDuigou1.enabled = true; m_GameModeDuigou2.enabled = false; conf.WriteGameStarMode("oper"); break; } case GameSet.FreeMode: // 免费模式 { m_GameModeDuigou1.enabled = false; m_GameModeDuigou2.enabled = true; conf.WriteGameStarMode("FREE"); break; } case GameSet.ResetFactory: // 恢复出厂设置 { ResetFactory(); break; } case GameSet.StartLEDLiang: // 开始按键灯 - 亮 { pcvr.StartBtLight = StartLightState.Liang; break; } case GameSet.StartLEDShan: // 开始按键灯 - 闪 { pcvr.StartBtLight = StartLightState.Shan; break; } case GameSet.StartLEDMie: // 开始按键灯 - 灭 { pcvr.StartBtLight = StartLightState.Mie; break; } case GameSet.CheckQiNang1: // 气囊信息 - 前气囊 { pcvr.m_IsOpneForwardQinang = true; pcvr.m_IsOpneBehindQinang = false; pcvr.m_IsOpneLeftQinang = false; pcvr.m_IsOpneRightQinang = false; break; } case GameSet.CheckQiNang2: // 气囊信息 - 后气囊 { pcvr.m_IsOpneForwardQinang = false; pcvr.m_IsOpneBehindQinang = true; pcvr.m_IsOpneLeftQinang = false; pcvr.m_IsOpneRightQinang = false; break; } case GameSet.CheckQiNang3: // 气囊信息 - 左气囊 { pcvr.m_IsOpneForwardQinang = false; pcvr.m_IsOpneBehindQinang = false; pcvr.m_IsOpneLeftQinang = true; pcvr.m_IsOpneRightQinang = false; break; } case GameSet.CheckQiNang4: // 气囊信息 - 右气囊 { pcvr.m_IsOpneForwardQinang = false; pcvr.m_IsOpneBehindQinang = false; pcvr.m_IsOpneLeftQinang = false; pcvr.m_IsOpneRightQinang = true; break; } case GameSet.GameAudioSet: // 音量设置 - <音量值> { GameAudioVolume++; if (GameAudioVolume > 10) { GameAudioVolume = 0; } GameAudioVolumeLB.text = GameAudioVolume.ToString(); conf.WriteGameAudioVolume(GameAudioVolume); break; } case GameSet.GameAudioReset: // 音量设置 - 重置 { GameAudioVolume = 7; GameAudioVolumeLB.text = GameAudioVolume.ToString(); conf.WriteGameAudioVolume(GameAudioVolume); break; } case GameSet.OriginalSpeed: // 初始速度 { int speedVal = Convert.ToInt32(PlayerMinSpeed.text); speedVal += 10; if (speedVal > 80) { speedVal = 0; } PlayerMinSpeed.text = speedVal.ToString(); conf.WritePlayerMinSpeedVal(speedVal); break; } case GameSet.AdjustGame: // 校准 { InitJiaoZhunPcvr(); break; } case GameSet.SteerForceShiWei: { SetSteerForceShiWei(); break; } case GameSet.SteerForceGeWei: { SetSteerForceGeWei(); break; } case GameSet.GameLanguage: { ChangeGameLanguage(); break; } case GameSet.GradeEasy: // 难度 - 简单 { GameGradeDuiGou[0].enabled = true; GameGradeDuiGou[1].enabled = false; GameGradeDuiGou[2].enabled = false; conf.Grade = 1; break; } case GameSet.GradeNormal: // 难度 - 正常 { GameGradeDuiGou[0].enabled = false; GameGradeDuiGou[1].enabled = true; GameGradeDuiGou[2].enabled = false; conf.Grade = 2; break; } case GameSet.GradeHard: // 难度 - 困难 { GameGradeDuiGou[0].enabled = false; GameGradeDuiGou[1].enabled = false; GameGradeDuiGou[2].enabled = true; conf.Grade = 3; break; } case GameSet.Exit: // 退出 { conf.Save(); CloseAllQiNang(); pcvr.StartBtLight = StartLightState.Mie; XkGameCtrl.IsLoadingLevel = true; IsOpenSetPanel = false; Resources.UnloadUnusedAssets(); GC.Collect(); Application.LoadLevel(0); break; } } }