【upview】优化被关闭后依然可以通过事件触发报错的问题
parent
518cb7dac1
commit
3204bd5945
|
@ -170,6 +170,7 @@ function UpView:OnClose()
|
|||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
end
|
||||
self.IsClose = true
|
||||
end
|
||||
|
||||
function UpView:SetShowType(context)
|
||||
|
@ -198,6 +199,9 @@ function UpView:SetShowType(context)
|
|||
end
|
||||
|
||||
function UpView:UpdateGoldVal()
|
||||
if self.IsClose then
|
||||
return
|
||||
end
|
||||
-- 先清一遍红点
|
||||
self:_ClearRP()
|
||||
local panelShowItemList = self.itemList
|
||||
|
@ -228,9 +232,11 @@ function UpView:UpdateGoldVal()
|
|||
self:_BindRP(panelShowItemList[i], redpot)
|
||||
end
|
||||
else
|
||||
if self.cnyList[i].gameObject then
|
||||
self.cnyList[i].gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- 刷新倒计时显示
|
||||
|
|
Loading…
Reference in New Issue