From 9b138fe56600d4428d3f66d2829022352e098119 Mon Sep 17 00:00:00 2001 From: jiaoyangna <17610272109@lianjingshidai.com> Date: Wed, 8 Jul 2020 16:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E6=97=B6=E5=8F=AC=E5=94=A4=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Operating/TimeLimitedCall.lua | 4 ++++ 1 file changed, 4 insertions(+) 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