diff --git a/Assets/ManagedResources/~Lua/View/UpView.lua b/Assets/ManagedResources/~Lua/View/UpView.lua index d15f9341a1..3e25c207a3 100644 --- a/Assets/ManagedResources/~Lua/View/UpView.lua +++ b/Assets/ManagedResources/~Lua/View/UpView.lua @@ -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,7 +232,9 @@ function UpView:UpdateGoldVal() self:_BindRP(panelShowItemList[i], redpot) end else - self.cnyList[i].gameObject:SetActive(false) + if self.cnyList[i].gameObject then + self.cnyList[i].gameObject:SetActive(false) + end end end end