private void OpenConfirmForceOpen() { GameWebAPI.ResponseWorldStageForceOpenMaster.ForceOpen questForceOpen = QuestData.GetQuestForceOpen(int.Parse(this.worldStageData.worldStageM.worldStageId)); if (questForceOpen != null) { IPayConfirmNotice payConfirmNotice = FactoryPayConfirmNotice.CreateDialog(questForceOpen.assetCategoryId); payConfirmNotice.SetAssets(questForceOpen.assetCategoryId, questForceOpen.assetValue, questForceOpen.assetNum); string assetName = UIAssetName.GetAssetName(questForceOpen.assetCategoryId.ToString(), questForceOpen.assetValue.ToString()); string info = string.Format(StringMaster.GetString("QuestForceOpenConfirmInfo"), assetName, questForceOpen.forceOpenMinute); payConfirmNotice.SetMessage(StringMaster.GetString("QuestUnlockTitle"), info); payConfirmNotice.SetPushActionYesButton(new Action <UnityEngine.Object>(this.OnConfirmPushYesButton)); } }
private void CheckPayAssetsNumber(int price, int playCount) { MasterDataMng.AssetCategory prizeAssetsCategory = this.gashaInfo.GetPrizeAssetsCategory(); if (UserInventory.CheckOverNumber(prizeAssetsCategory, 0)) { FactoryLimitOverNotice.CreateDialog(prizeAssetsCategory, LimitOverNoticeType.GASHA); } else { MasterDataMng.AssetCategory costAssetsCategory = this.gashaInfo.priceType.GetCostAssetsCategory(); string costAssetsValue = this.gashaInfo.priceType.GetCostAssetsValue(); int num = UserInventory.GetNumber(costAssetsCategory, costAssetsValue); if (this.isTutorial && num < price) { num = price; } if (num < price) { if (costAssetsCategory == MasterDataMng.AssetCategory.DIGI_STONE) { CMD_Confirm cmd_Confirm = GUIMain.ShowCommonDialog(new Action <int>(this.OnClosedShopOpenConfirm), "CMD_Confirm", null) as CMD_Confirm; cmd_Confirm.Title = this.gashaInfo.gachaName; cmd_Confirm.Info = StringMaster.GetString("GashaShortage"); cmd_Confirm.BtnTextYes = StringMaster.GetString("SystemButtonGoShop"); cmd_Confirm.BtnTextNo = StringMaster.GetString("SystemButtonClose"); } } else { GameWebAPI.GA_Req_ExecGacha useDetail = new GameWebAPI.GA_Req_ExecGacha { gachaId = int.Parse(this.gashaInfo.gachaId), playCount = playCount, itemCount = num }; this.cofirmDialog = FactoryPayConfirmNotice.CreateDialog(costAssetsCategory, costAssetsValue, this.gashaInfo.gachaName, num, price, new Action(this.OnPushedConfirmYesButton), playCount, useDetail); } } }