miduo_client/Assets/ManagedResources/~Lua/Modules/Mission/Behaviour/BHSpendGoods.lua

15 lines
327 B
Lua
Raw Normal View History

2020-08-25 15:46:38 +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