// Use this for initialization void Start() { IsCloseQiNang = false; IsCloseDongGan = false; GameMode = ReadGameInfo.GetInstance().ReadGameStarMode(); if (GameMode == ReadGameInfo.GameMode.Oper.ToString()) { CoinNumSet = ReadGameInfo.GetInstance().ReadStarCoinNumSet(); InsertCoinNum = ReadGameInfo.GetInstance().ReadInsertCoinNum(); CoinNumSetTex.spriteName = CoinNumSet; m_InserNum = Convert.ToInt32(InsertCoinNum); UpdateInsertCoin(); TouBiObj.SetActive(true); FreeObj.SetActive(false); } else { TouBiObj.SetActive(false); FreeObj.SetActive(true); } InputEventCtrl.GetInstance().mListenPcInputEvent.ClickSetEnterBtEvent += ClickSetEnterBtEvent; InputEventCtrl.GetInstance().mListenPcInputEvent.ClickSetMoveBtEvent += ClickSetMoveBtEvent; InputEventCtrl.GetInstance().mListenPcInputEvent.ClickCloseDongGanBtEvent += ClickCloseDongGanBtEvent; }
void FangXiangJiaoZhun() { if (!IsInitFangXiangJiaoZhun) { return; } ReadGameInfo conf = ReadGameInfo.GetInstance(); //Record FangXiangInfo if (SteerValCur < SteerValMin) { SteerValMin = SteerValCur; conf.SteerMin = (int)SteerValMin; } if (SteerValCur > SteerValMax) { SteerValMax = SteerValCur; conf.SteerMax = (int)SteerValMax; } if (bPlayerStartKeyDown && !IsJiaoZhunFireBt) { IsJiaoZhunFireBt = true; FangXiangJiaoZhunCount++; switch (FangXiangJiaoZhunCount) { case 1: //CheTouZuoZhuan uint dVal_0 = SteerValCur - SteerValMin; uint dVal_1 = SteerValMax - SteerValCur; if (dVal_0 < dVal_1) { IsFanZhuangFangXiang = false; } else if (dVal_0 > dVal_1) { IsFanZhuangFangXiang = true; } break; case 2: //CheTouZhuanDaoZhongJian SteerValCen = SteerValCur; break; case 3: //CheTouYouZhuan ResetFangXiangJiaoZhun(); InitYouMenJiaoZhun(); IsJiaoZhunFireBt = true; break; } } else if (!bPlayerStartKeyDown && IsJiaoZhunFireBt) { IsJiaoZhunFireBt = false; } }
void ResetFactory() { ReadGameInfo.GetInstance().FactoryReset(); m_CoinForStar.text = "2"; m_GameModeDuigou1.enabled = true; m_GameModeDuigou2.enabled = false; GameAudioVolume = 7; GameAudioVolumeLB.text = GameAudioVolume.ToString(); if (pcvr.bIsHardWare) { pcvr.GetInstance().mPcvrTXManage.SubPlayerCoin(m_InserNum, pcvrTXManage.PlayerCoinEnum.player01); } m_InserNum = 0; UpdateInsertCoin(); CaiPiaoInfoLb.text = "30"; ChuPiaoLvDuiGou[0].enabled = false; ChuPiaoLvDuiGou[1].enabled = true; ChuPiaoLvDuiGou[2].enabled = false; ChuPiaoDuiGou[0].enabled = false; ChuPiaoDuiGou[1].enabled = true; GameGradeDuiGou[0].enabled = false; GameGradeDuiGou[1].enabled = true; GameGradeDuiGou[2].enabled = false; ResetGameLanguage(); }
void ResetFangXiangJiaoZhun() { if (!IsInitFangXiangJiaoZhun) { return; } //ScreenLog.Log("pcvr -> ResetFangXiangJiaoZhun..."); IsJiaoZhunFireBt = false; FangXiangJiaoZhunCount = 0; IsInitFangXiangJiaoZhun = false; uint TmpVal = 0; if (IsFanZhuangFangXiang) { TmpVal = SteerValMax; SteerValMax = SteerValMin; SteerValMin = TmpVal; //ScreenLog.Log("CheTouFangXiangFanZhuan -> SteerValMin " + SteerValMin + ", SteerValMax " +SteerValMax); } else { //ScreenLog.Log("CheTouFangXiangZhengZhuan -> SteerValMin " + SteerValMin + ", SteerValMax " +SteerValMax); } CheckBikeDirLen(); ReadGameInfo conf = ReadGameInfo.GetInstance(); conf.SteerMin = (int)SteerValMin; conf.SteerCenter = (int)SteerValCen; conf.SteerMax = (int)SteerValMax; }
void ResetYouMenJiaoZhun() { if (!IsInitYouMenJiaoZhun) { return; } //ScreenLog.Log("pcvr -> ResetYouMenJiaoZhun..."); IsJiaoZhunFireBt = false; IsInitYouMenJiaoZhun = false; bIsJiaoYanBikeValue = false; uint TmpVal = 0; if (IsFanZhuangYouMen) { TmpVal = mBikePowerMax; mBikePowerMax = mBikePowerMin; mBikePowerMin = TmpVal; BikePowerLen = mBikePowerMin - mBikePowerMax + 1; //ScreenLog.Log("YouMenFanZhuang -> mBikePowerMax = " + mBikePowerMax + ", mBikePowerMin = " + mBikePowerMin); } else { BikePowerLen = mBikePowerMax - mBikePowerMin + 1; //ScreenLog.Log("YouMenZhengZhuang -> mBikePowerMax = " + mBikePowerMax + ", mBikePowerMin = " + mBikePowerMin); } BikePowerLen = Math.Max(1, BikePowerLen); ReadGameInfo conf = ReadGameInfo.GetInstance(); conf.ThrustMax = (int)mBikePowerMax; conf.ThrustMin = (int)mBikePowerMin; }
void ResetShaCheJiaoZhun() { if (!IsInitShaCheJiaoZhun) { return; } IsJiaoZhunFireBt = false; IsInitShaCheJiaoZhun = false; bIsJiaoYanBikeValue = false; uint TmpVal = 0; if (IsFanZhuangShaChe) { TmpVal = mBikeShaCheMax; mBikeShaCheMax = mBikeShaCheMin; mBikeShaCheMin = TmpVal; BikeShaCheLen = mBikeShaCheMin - mBikeShaCheMax + 1; } else { BikeShaCheLen = mBikeShaCheMax - mBikeShaCheMin + 1; } BikeShaCheLen = Math.Max(1, BikeShaCheLen); ReadGameInfo conf = ReadGameInfo.GetInstance(); conf.BrakeMax = (int)mBikeShaCheMax; conf.BrakeMin = (int)mBikeShaCheMin; }
void OnClickBeginBt() { if (PlayerControllerForMoiew.IsLoadMovieLevel) { return; } if (m_IsBeginOk && !m_HasBegin) { m_BeginSource.Play(); m_IsStartGame = true; if (GameMode == "oper") { m_InserNum -= Convert.ToInt32(CoinNumSet); UpdateInsertCoin(); ReadGameInfo.GetInstance().WriteInsertCoinNum(m_InserNum.ToString()); if (pcvr.bIsHardWare) { pcvr.GetInstance().SubPlayerCoin(Convert.ToInt32(CoinNumSet)); } } m_Tishi.SetActive(false); m_Loading.SetActive(true); timmerstar = true; m_HasBegin = true; } }
void Start() { InitJiaoYanMiMa(); ReadGameInfo conf = ReadGameInfo.GetInstance(); //FangXiangInfo SteerValMin = (uint)conf.SteerMin; SteerValCen = (uint)conf.SteerCenter; SteerValMax = (uint)conf.SteerMax; CheckBikeDirLen(); //YouMenInfo mBikePowerMin = (uint)conf.ThrustMin; mBikePowerMax = (uint)conf.ThrustMax; BikePowerLen = mBikePowerMax < mBikePowerMin ? (mBikePowerMin - mBikePowerMax + 1) : (mBikePowerMax - mBikePowerMin + 1); BikePowerLen = Math.Max(1, BikePowerLen); mBikeShaCheMin = (uint)conf.BrakeMin; mBikeShaCheMax = (uint)conf.BrakeMax; BikeShaCheLen = mBikeShaCheMax < mBikeShaCheMin ? (mBikeShaCheMin - mBikeShaCheMax + 1) : (mBikeShaCheMax - mBikeShaCheMin + 1); BikeShaCheLen = Math.Max(1, BikeShaCheLen); InitFangXiangPowerOpen(); }
void OnClickInsertBt() { m_TbSource.Play(); m_InserNum++; ReadGameInfo.GetInstance().WriteInsertCoinNum(m_InserNum.ToString()); UpdateInsertCoin(); }
void Start() { if (IsLuPingTest) { gameObject.SetActive(false); } //m_MovieTex.loop = true; //m_MovieTex.Play(); m_HasBegin = false; GameMode = ReadGameInfo.GetInstance().ReadGameStarMode(); if (GameMode == "oper") { m_FreeTexture.enabled = false; CoinNumSet = ReadGameInfo.GetInstance().ReadStarCoinNumSet(); InsertCoinNum = ReadGameInfo.GetInstance().ReadInsertCoinNum(); CoinNumSetTex.spriteName = CoinNumSet; m_InserNum = Convert.ToInt32(InsertCoinNum); UpdateInsertCoin(); UpdateTex(); } else { m_ToubiObj.SetActive(false); m_IsBeginOk = true; m_FreeTexture.enabled = true; } //Invoke("OnClickBeginBt", UnityEngine.Random.Range(1f, 5f)); //test m_Loading.SetActive(false); pcvr.ShaCheBtLight = StartLightState.Mie; InputEventCtrl.GetInstance().ClickSetEnterBtEvent += ClickSetEnterBtEvent; InputEventCtrl.GetInstance().ClickStartBtOneEvent += ClickStartBtOneEvent; }
/// <summary> /// 更新币值信息. /// </summary> public void UpdateInsertCoin() { ReadGameInfo.GetInstance().WriteInsertCoinNum(SSGameCtrl.GetInstance().mPlayerDataManage.PlayerCoinNum.ToString()); int n = 1; int num = SSGameCtrl.GetInstance().mPlayerDataManage.PlayerCoinNum; int temp = num; while (num > 9) { num /= 10; n++; } if (n > 2) { m_InsertNumS.spriteName = "9"; m_InsertNumG.spriteName = "9"; } else if (n == 2) { int shiwei = (int)(temp / 10); int gewei = (int)(temp - shiwei * 10); m_InsertNumS.spriteName = shiwei.ToString(); m_InsertNumG.spriteName = gewei.ToString(); } else if (n == 1) { m_InsertNumS.spriteName = "0"; m_InsertNumG.spriteName = temp.ToString(); } }
/// <summary> /// 保存方向信息. /// </summary> public void SaveSteerVal(PcvrValState key) { string fileName = ReadGameInfo.GetInstance().mFileName; switch (key) { case PcvrValState.ValMin: { SteerValMinAy = SteerValCurAy; HandleJson.GetInstance().WriteToFileXml(fileName, "SteerValMin", SteerValCurAy.ToString()); break; } case PcvrValState.ValCenter: { SteerValCenAy = SteerValCurAy; HandleJson.GetInstance().WriteToFileXml(fileName, "SteerValCen", SteerValCurAy.ToString()); break; } case PcvrValState.ValMax: { SteerValMaxAy = SteerValCurAy; HandleJson.GetInstance().WriteToFileXml(fileName, "SteerValMax", SteerValCurAy.ToString()); break; } } }
/// <summary> /// 初始化方向信息. /// </summary> void InitSteerInfo() { string fileName = ReadGameInfo.GetInstance().mFileName; string strVal = HandleJson.GetInstance().ReadFromFileXml(fileName, "SteerValMax"); if (strVal == null || strVal == "") { strVal = "4095"; HandleJson.GetInstance().WriteToFileXml(fileName, "SteerValMax", strVal); } SteerValMaxAy = System.Convert.ToInt32(strVal); strVal = HandleJson.GetInstance().ReadFromFileXml(fileName, "SteerValCen"); if (strVal == null || strVal == "") { strVal = "2047"; HandleJson.GetInstance().WriteToFileXml(fileName, "SteerValCen", strVal); } SteerValCenAy = System.Convert.ToInt32(strVal); strVal = HandleJson.GetInstance().ReadFromFileXml(fileName, "SteerValMin"); if (strVal == null || strVal == "") { strVal = "0"; HandleJson.GetInstance().WriteToFileXml(fileName, "SteerValMin", strVal); } SteerValMinAy = System.Convert.ToInt32(strVal); }
/// <summary> /// 保存油门校准结果. /// </summary> public void SaveYouMenVal() { string fileName = ReadGameInfo.GetInstance().mFileName; YouMenMaxVal = YouMenCurVal; HandleJson.GetInstance().WriteToFileXml(fileName, "YouMenMaxVal", YouMenCurVal.ToString()); }
/// <summary> /// 检测油门最小值信息. /// </summary> void CheckYouMenMinValInfo() { if (!bIsHardWare) { return; } if (CountYouMen >= 10) { return; } if (Time.realtimeSinceStartup - TimeYouMen < 0.1f) { return; } TimeYouMen = Time.realtimeSinceStartup; CountYouMen++; YouMenMinVal += YouMenCurVal; if (CountYouMen >= 10) { string fileName = ReadGameInfo.GetInstance().mFileName; YouMenMinVal = (int)(YouMenMinVal / 10f); HandleJson.GetInstance().WriteToFileXml(fileName, "YouMenMinVal", YouMenMinVal.ToString()); } }
void Start() { XKGameVersionCtrl gameVersionCom = gameObject.AddComponent <XKGameVersionCtrl>(); if (gameVersionCom != null) { gameVersionCom.Init(); } if (IsLuPingTest) { gameObject.SetActive(false); } m_HasBegin = false; GameMode = ReadGameInfo.GetInstance().ReadGameStarMode(); if (GameMode == ReadGameInfo.GameMode.Oper.ToString()) { m_FreeTexture.enabled = false; CoinNumSet = ReadGameInfo.GetInstance().ReadStarCoinNumSet(); InsertCoinNum = ReadGameInfo.GetInstance().ReadInsertCoinNum(); CoinNumSetTex.spriteName = CoinNumSet; m_InserNum = Convert.ToInt32(InsertCoinNum); m_CoinNumSet = Convert.ToInt32(CoinNumSet); UpdateInsertCoin(); UpdateTex(); } else { m_ToubiObj.SetActive(false); m_FreeTexture.enabled = true; } m_Loading.SetActive(false); InputEventCtrl.GetInstance().mListenPcInputEvent.ClickSetEnterBtEvent += ClickSetEnterBtEvent; if (GameMode == ReadGameInfo.GameMode.Free.ToString()) { InputEventCtrl.GetInstance().mListenPcInputEvent.ClickCloseDongGanBtEvent += ClickStartBtOneEvent; } else { InputEventCtrl.GetInstance().mListenPcInputEvent.ClickTVYaoKongEnterBtEvent += ClickStartBtOneEvent; InputEventCtrl.GetInstance().mListenPcInputEvent.ClickTVYaoKongExitBtEvent += ClickTVYaoKongExitBtEvent; } if (m_InserNum >= m_CoinNumSet && GameMode == ReadGameInfo.GameMode.Oper.ToString()) { UpdateTex(); //ClickStartBtOneEvent(InputEventCtrl.ButtonState.DOWN); 关闭自动开始游戏. } m_SSUICenterCom = gameObject.AddComponent <SSUICenter>(); if (mUICamera != null) { m_SSUICenterCom.Init(mUICamera.transform); } InputEventCtrl.GetInstance().OnCaiPiaJiChuPiaoEvent += OnCaiPiaJiChuPiaoEvent; InputEventCtrl.GetInstance().OnCaiPiaJiWuPiaoEvent += OnCaiPiaJiWuPiaoEvent; }
void InitSteerForceInfo() { ReadGameInfo conf = ReadGameInfo.GetInstance(); SteerForceShiWei = conf.SteerForce / 10; SteerForceGeWei = conf.SteerForce % 10; SetSteerForceLBInfo(1); }
void Start() { chile = 0; m_pScale.enabled = false; if (SSGameDataCtrl.GetInstance() != null) { Debug.Log("fix game ui data..."); m_pGameTime = SSGameDataCtrl.GetInstance().m_UIData.m_pGameTime; Distance = SSGameDataCtrl.GetInstance().m_UIData.Distance; } else { Debug.LogWarning("not find SSGameDataCtrl..."); } int gradeVal = ReadGameInfo.GetInstance().ReadGrade(); switch (gradeVal) { case 1: //低. { m_pGameTime += 15f; break; } case 2: //中. { break; } case 3: //高. { m_pGameTime -= 10f; break; } default: { break; } } m_pGameTime += 1; m_totalTime = (int)m_pGameTime; XkGameCtrl.IsLoadingLevel = false; ShowJiFenInfo(0); UpdateGameTime(); m_SSUICenterCom = gameObject.AddComponent <SSUICenter>(); if (m_UICamera != null) { m_SSUICenterCom.Init(m_UICamera.transform); } InputEventCtrl.GetInstance().OnCaiPiaJiChuPiaoEvent += OnCaiPiaJiChuPiaoEvent; InputEventCtrl.GetInstance().OnCaiPiaJiWuPiaoEvent += OnCaiPiaJiWuPiaoEvent; InputEventCtrl.GetInstance().mListenPcInputEvent.ClickTVYaoKongExitBtEvent += ClickTVYaoKongExitBtEvent; }
void SetSteerForceLBInfo(int key = 0) { if (key == 0) { ReadGameInfo conf = ReadGameInfo.GetInstance(); conf.SteerForce = (SteerForceShiWei * 10) + SteerForceGeWei; } SteerForceLB.text = SteerForceShiWei.ToString() + SteerForceGeWei.ToString() + " (0-80)"; }
void InitGameLanguage() { int indexVal = (ReadGameInfo.GetInstance().Language == GameTextType.Chinese ? 0 : 1); for (int i = 0; i < 2; i++) { GameLanguageObj[i].SetActive(i == indexVal ? true : false); } }
void ChangeGameLanguage() { for (int i = 0; i < 2; i++) { GameLanguageObj[i].SetActive(!GameLanguageObj[i].activeSelf); if (GameLanguageObj[i].activeSelf) { ReadGameInfo.GetInstance().Language = (GameTextType)i; } } }
/// <summary> /// 保存脚踏板信息. /// </summary> public void SaveJiaoTaBanVal() { if (!bIsHardWare) { return; } string fileName = ReadGameInfo.GetInstance().mFileName; BianMaQiMaxVal = BianMaQiCurVal; HandleJson.GetInstance().WriteToFileXml(fileName, "BianMaQiMaxVal", BianMaQiCurVal.ToString()); }
public void OnClickBeginBt2P() { if (GameState == 1 && GameSorD == "double" && !PlayerController.IsKaiqiang && !m_IsXubi && (GameMode == "free" || pcvr.CoinCurGame >= Convert.ToInt32(CoinNumSet))) { if (pcvr.GetInstance() && !pcvr.stopUrgent && !pcvr.GetInstance().p2AnquandaiOpen) { m_pP2AnquandaiObj.SetActive(true); } if (!PlayerController.IsKaiqiang) { m_AudioXiaonvhai.Play(); m_Xiaonvhai.mainTexture = m_XiaonvhaiTex; m_XiaonuhaiKaishi.enabled = false; m_XiaonvhaiToubi.enabled = false; //close light pcvr.GetInstance().setLightStateP2(2); } int GameTimeRecord = Convert.ToInt32(ReadGameInfo.GetInstance().ReadGameTimeSet()); GameTime = GameTimeRecord + Time.time; PlayerController.IsKaiqiang = true; m_pZhunxing.SetActive(true); if (pcvr.GetInstance()) { pcvr.GetInstance().gunShakeOpen = true; } if (GameMode == "oper") { if (!pcvr.bIsHardWare) { pcvr.CoinCurGame -= Convert.ToInt32(CoinNumSet); } else { pcvr.GetInstance().SubPlayerCoin(Convert.ToInt32(CoinNumSet)); } UpdateInsertCoin(); } } else if (m_IsXubi) { m_Warn.enabled = true; m_pWarnAudio.Play(); } }
void OnClickInsertBt() { m_InserNum++; m_TbSource.Play(); ReadGameInfo.GetInstance().WriteInsertCoinNum(m_InserNum.ToString()); UpdateInsertCoin(); if (m_InserNum >= m_CoinNumSet) { UpdateTex(); ClickStartBtOneEvent(InputEventCtrl.ButtonState.DOWN); } }
/// <summary> /// 初始化脚踏板信息. /// </summary> void InitJiaoTaBanInfo() { string fileName = ReadGameInfo.GetInstance().mFileName; string strVal = HandleJson.GetInstance().ReadFromFileXml(fileName, "BianMaQiMaxVal"); if (strVal == null || strVal == "") { strVal = "31000"; HandleJson.GetInstance().WriteToFileXml(fileName, "BianMaQiMaxVal", strVal); } BianMaQiMaxVal = System.Convert.ToInt32(strVal); BianMaQiMinVal = 30000; }
void Start() { chile = 0; m_pScale.enabled = false; if (SSGameDataCtrl.GetInstance() != null) { Debug.Log("fix game ui data..."); m_pGameTime = SSGameDataCtrl.GetInstance().m_UIData.m_pGameTime; Distance = SSGameDataCtrl.GetInstance().m_UIData.Distance; } else { Debug.LogWarning("not find SSGameDataCtrl..."); } int gradeVal = ReadGameInfo.GetInstance().ReadGrade(); switch (gradeVal) { case 1: //低. { m_pGameTime += 15f; break; } case 2: //中. { break; } case 3: //高. { m_pGameTime -= 10f; break; } default: { break; } } m_pGameTime += 1; m_totalTime = (int)m_pGameTime; XkGameCtrl.IsLoadingLevel = false; ShowJiFenInfo(0); UpdateGameTime(); InputEventCtrl.GetInstance().OnCaiPiaJiChuPiaoEvent += OnCaiPiaJiChuPiaoEvent; InputEventCtrl.GetInstance().OnCaiPiaJiWuPiaoEvent += OnCaiPiaJiWuPiaoEvent; }
void ResetFactory() { ReadGameInfo.GetInstance().FactoryReset(); PlayerMinSpeed.text = "0"; m_CoinForStar.text = "1"; m_GameModeDuigou1.enabled = false; m_GameModeDuigou2.enabled = true; GameAudioVolume = 7; GameAudioVolumeLB.text = GameAudioVolume.ToString(); if (pcvr.bIsHardWare) { pcvr.GetInstance().mPcvrTXManage.SubPlayerCoin(m_InserNum, pcvrTXManage.PlayerCoinEnum.player01); } m_InserNum = 0; UpdateInsertCoin(); }
void ResetFactory() { ReadGameInfo conf = ReadGameInfo.GetInstance(); conf.FactoryReset(); PlayerMinSpeed.text = "0"; m_CoinForStar.text = "1"; m_GameModeDuigou1.enabled = true; m_GameModeDuigou2.enabled = false; GameAudioVolume = 7; GameAudioVolumeLB.text = GameAudioVolume.ToString(); if (pcvr.bIsHardWare) { pcvr.GetInstance().SubPlayerCoin(m_InserNum); } m_InserNum = 0; UpdateInsertCoin(); switch (conf.Grade) { case 1: GameGradeDuiGou[0].enabled = true; GameGradeDuiGou[1].enabled = false; GameGradeDuiGou[2].enabled = false; break; case 3: GameGradeDuiGou[0].enabled = false; GameGradeDuiGou[1].enabled = false; GameGradeDuiGou[2].enabled = true; break; case 2: default: // 默认设置为普通难度 GameGradeDuiGou[0].enabled = false; GameGradeDuiGou[1].enabled = true; GameGradeDuiGou[2].enabled = false; break; } ResetSteerForce(); }
public void OnClickBeginBt1P() { if (m_IsXubi && (GameMode == "free" || pcvr.CoinCurGame >= Convert.ToInt32(CoinNumSet))) { if (pcvr.GetInstance() && !pcvr.stopUrgent && !pcvr.GetInstance().p1AnquandaiOpen) { m_pP1AnquandaiObj.SetActive(true); //return; } if (pcvr.GetInstance() && PlayerController.IsKaiqiang) { pcvr.GetInstance().gunShakeOpen = true; } PlayerController.inGame = true; m_XubiCishu++; m_IsXubi = false; m_pBeginAudio.Play(); m_AudioBeijing.Play(); m_Warn.enabled = false; m_XubiDaojishi.SetActive(false); int GameTimeRecord = Convert.ToInt32(ReadGameInfo.GetInstance().ReadGameTimeSet()); GameTime = GameTimeRecord + Time.time; if (GameMode == "oper") { GameState = 1; if (!pcvr.bIsHardWare) { pcvr.CoinCurGame -= Convert.ToInt32(CoinNumSet); } else { pcvr.GetInstance().SubPlayerCoin(Convert.ToInt32(CoinNumSet)); } UpdateInsertCoin(); } m_TimmerForXubi = 0.0f; m_pXubiAudio.Stop(); } }
void SetGameLanguage(SetEnum val) { switch (val) { case SetEnum.LanguageCH: { ReadGameInfo.GetInstance().WriteGameLanguage((int)GameTextType.Chinese); break; } case SetEnum.LanguageEN: { ReadGameInfo.GetInstance().WriteGameLanguage((int)GameTextType.English); break; } } LanguageDuiGou[0].enabled = val == SetEnum.LanguageCH ? true : false; LanguageDuiGou[1].enabled = !LanguageDuiGou[0].enabled; }