层级报错 修改

dev_chengFeng
jiaoyangna 2021-03-30 22:36:31 +08:00
parent 3684b8fec1
commit dea7c12ded
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ end
-- 打开,重新打开时回调 -- 打开,重新打开时回调
function EveryDayGift:OnShow(_sortingOrder) function EveryDayGift:OnShow(_sortingOrder)
self.gameObject:SetActive(true) self.gameObject:SetActive(true)
self.sortingOrder = _sortingOrder self.sortingOrder = _sortingOrder or self.sortingOrder
self.extra:SetActive(true) self.extra:SetActive(true)
self.actId = self.actConfig.ActId self.actId = self.actConfig.ActId
self.actType = self.actConfig.ActiveType self.actType = self.actConfig.ActiveType

View File

@ -179,7 +179,7 @@ function GiftPre:SetData(data,_parent,_rechargeNum,sortingOrder)
else else
self.tipImage.gameObject:SetActive(false) self.tipImage.gameObject:SetActive(false)
end end
Util.SetParticleSortLayer(self.UI_Effect_MianBan_LiBao_button_01, sortingOrder) Util.SetParticleSortLayer(self.UI_Effect_MianBan_LiBao_button_01, sortingOrder or 0)
local isshow = false local isshow = false
if self.data.DataType == DynamicActivityManager.selectIndex.dataType then if self.data.DataType == DynamicActivityManager.selectIndex.dataType then
for i = 1 , #DynamicActivityManager.selectIndex.goodsId do for i = 1 , #DynamicActivityManager.selectIndex.goodsId do