diff --git a/Assets/ManagedResources/~Lua/Modules/Operating/TimeLimitedCall.lua b/Assets/ManagedResources/~Lua/Modules/Operating/TimeLimitedCall.lua index 97d6c27a07..a6b903ded6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Operating/TimeLimitedCall.lua +++ b/Assets/ManagedResources/~Lua/Modules/Operating/TimeLimitedCall.lua @@ -45,7 +45,9 @@ function TimeLimitedCall:InitComponent(gameObject) self.nextReward = Util.GetGameObject(self.gameObject, "nextlevel/reward") self.icon = Util.GetGameObject(self.frame.gameObject, "icon"):GetComponent("Image") self.detail= Util.GetGameObject(self.gameObject, "detail") + self.detail.gameObject:SetActive(false) self.reward= Util.GetGameObject(self.gameObject, "reward") + self.reward.gameObject:SetActive(false) self.getBtn=Util.GetGameObject(self.gameObject,"nextlevel") self.effect=Util.GetGameObject(self.gameObject,"juneng_chenggong") @@ -312,6 +314,8 @@ end function TimeLimitedCall:OnHide() self.gameObject:SetActive(false) + self.detail.gameObject:SetActive(false) + self.reward.gameObject:SetActive(false) if self.timer then self.timer:Stop() self.timer = nil