From 4b289f571b9ebe8cd0cb85bdeb163737a8de3db9 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Sat, 29 May 2021 15:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=85=B3=E5=8D=A1=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua index 11d784cf97..597f9eca75 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua @@ -12,6 +12,7 @@ this.timer = Timer.New() function this:InitComponent(gameObject) this.spLoader = SpriteLoader.New() this.backBtn=Util.GetGameObject(gameObject,"bg/backBtn") + this.backBtn:SetActive(true) this.Root=Util.GetGameObject(gameObject,"Root") this.proPre=Util.GetGameObject(gameObject,"proPre") this.shengxingIma=Util.GetGameObject(gameObject,"bg/shengxing"):GetComponent("Image") @@ -21,6 +22,10 @@ end function this:BindEvent() Util.AddClick(this.backBtn,function() parent:ClosePanel() + if this.timer then + this.timer:Stop() + this.timer = nil + end end) end