乾坤宝囊限时商店修改提交
parent
ec48fa55f0
commit
e8df9ca87e
|
|
@ -470,7 +470,7 @@ function ShopViewNew:ShopItemAdapter(shopItem, itemData)
|
||||||
local empty = Util.GetGameObject(shopItem, "empty")
|
local empty = Util.GetGameObject(shopItem, "empty")
|
||||||
local lock = Util.GetGameObject(shopItem, "lock")
|
local lock = Util.GetGameObject(shopItem, "lock")
|
||||||
local lockTip = Util.GetGameObject(shopItem, "lock/tip"):GetComponent("Text")
|
local lockTip = Util.GetGameObject(shopItem, "lock/tip"):GetComponent("Text")
|
||||||
|
local new = Util.GetGameObject(shopItem, "GameObject/new")
|
||||||
-- 计算数据
|
-- 计算数据
|
||||||
local itemInfo = ShopManager.GetShopItemInfo(itemData.id)
|
local itemInfo = ShopManager.GetShopItemInfo(itemData.id)
|
||||||
local curBuyCount = itemData.buyNum
|
local curBuyCount = itemData.buyNum
|
||||||
|
|
@ -560,6 +560,16 @@ function ShopViewNew:ShopItemAdapter(shopItem, itemData)
|
||||||
if isshow then
|
if isshow then
|
||||||
effect.gameObject:SetActive(true)
|
effect.gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if self.ShopType == SHOP_TYPE.QIANKUNBOX_SHOP then
|
||||||
|
if SoulPrintManager.CheckSoulExist(con.Id) then
|
||||||
|
new.gameObject:SetActive(false)
|
||||||
|
else
|
||||||
|
new.gameObject:SetActive(true)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
new.gameObject:SetActive(false)
|
||||||
|
end
|
||||||
|
|
||||||
-- 购买事件
|
-- 购买事件
|
||||||
Util.AddOnceClick(lock, function()
|
Util.AddOnceClick(lock, function()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue