2021-04-20 13:58:00 +08:00
|
|
|
--- 消耗物品
|
2020-05-09 13:31:21 +08:00
|
|
|
local BHSpendGoods = {}
|
|
|
|
local this = BHSpendGoods
|
|
|
|
|
|
|
|
function this.Excute(arg, func)
|
|
|
|
local itemList = arg.itemList
|
|
|
|
for _, v in ipairs(itemList) do
|
|
|
|
local itemId = v[1]
|
|
|
|
local count = v[2]
|
|
|
|
BagManager.SpendBagItem(itemId, count)
|
|
|
|
end
|
|
|
|
if func then func() end
|
|
|
|
end
|
|
|
|
|
2020-06-23 18:36:24 +08:00
|
|
|
return this
|