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);
         }
     }
 }