/// <summary> /// 点击下注 /// </summary> public void OnClickBet() { AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal); if (gambleData.GetGambleStatus() == GambleStatusType.Prepare) { DialogBean dialogData = new DialogBean(); dialogData.title = TextHandler.Instance.manager.GetTextById(611); PickForMoneyDialogView PickForMoneyDialog = DialogHandler.Instance.CreateDialog <PickForMoneyDialogView>(DialogEnum.PickForMoney, this, dialogData); PickForMoneyDialog.SetData((int)gambleData.betMaxForMoneyL / 10, (int)gambleData.betMaxForMoneyM / 10, (int)gambleData.betMaxForMoneyS / 10); PickForMoneyDialog.SetMaxMoney(gambleData.betMaxForMoneyL, gambleData.betMaxForMoneyM, gambleData.betMaxForMoneyS); } }
/// <summary> /// 重金寻聘 /// </summary> public void FindWorkerByMoney() { AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal); //检测是否超过人员上限 GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData(); if (gameData.listWorkerCharacter.Count >= gameData.workerNumberLimit) { ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1051)); return; } pickMoneyL = 0; pickMoneyM = 0; pickMoneyS = 0; DialogBean dialogData = new DialogBean(); dialogData.title = TextHandler.Instance.manager.GetTextById(3062); PickForMoneyDialogView pickForMoneyDialog = DialogHandler.Instance.CreateDialog <PickForMoneyDialogView>(DialogEnum.PickForMoney, this, dialogData); pickForMoneyDialog.SetData(1, 1, 100); pickForMoneyDialog.SetMaxMoney(99999, 99999, 99999); }