变身卡商店bug修改

dev_chengFeng
yuanshuai 2022-04-27 14:50:59 +08:00
parent 085c7add9f
commit 080f04ebbe
1 changed files with 7 additions and 7 deletions

View File

@ -589,13 +589,13 @@ function this:ShopItemAdapter(shopItem, itemData)
new.gameObject:SetActive(false) new.gameObject:SetActive(false)
end end
yihuode.gameObject:SetActive(false) yihuode.gameObject:SetActive(false)
if con.ItemType == ItemType.Incarnation and not isEmpty then -- if con.ItemType == ItemType.Incarnation and not isEmpty then
local num = BagManager.GetItemCountById(con.Id) -- local num = BagManager.GetItemCountById(con.Id)
if num > 0 or IncarnationManager.GetStatusByItemId(con.Id) >= 0 then -- if num > 0 or IncarnationManager.GetStatusByItemId(con.Id) >= 0 then
yihuode.gameObject:SetActive(true) -- yihuode.gameObject:SetActive(true)
Util.SetColor(bg, Color.New(0.5, 0.5, 0.5, 1)) -- Util.SetColor(bg, Color.New(0.5, 0.5, 0.5, 1))
end -- end
end -- end
-- 购买事件 -- 购买事件