From 2c0c23553c314833add3c5c95aea35d5e0528526 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Wed, 28 Jul 2021 12:06:58 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=80=8D=E9=81=A5=E6=B8=B8=E3=80=91?= =?UTF-8?q?=E6=81=AD=E5=96=9C=E8=8E=B7=E5=BE=97=E4=B8=AD=E9=81=93=E5=85=B7?= =?UTF-8?q?=E6=9C=89=E8=B7=B3=E8=BD=AC=E6=8C=89=E9=92=AE=EF=BC=8C=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=90=8E=E5=86=8D=E8=BF=94=E5=9B=9E=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E6=81=AD=E5=96=9C=E8=8E=B7=E5=BE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/XiaoYao/XiaoYaoEventPanel.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoEventPanel.lua b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoEventPanel.lua index 9731f1ccee..c0c5eae7b5 100644 --- a/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoEventPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/XiaoYao/XiaoYaoEventPanel.lua @@ -116,11 +116,7 @@ function this:OnShow() end --界面关闭时调用(用于子类重写) -function this:OnClose() - while(this.grid.transform.childCount>0) - do - destroy(this.grid.transform:GetChild(0).gameObject) - end +function this:OnClose() if triggertype>0 then Game.GlobalEvent:DispatchEvent(GameEvent.XiaoYao.PlayEventEffect) end @@ -128,6 +124,10 @@ end --界面销毁时调用(用于子类重写) function this:OnDestroy() + while(this.grid.transform.childCount>0) + do + destroy(this.grid.transform:GetChild(0).gameObject) + end this.spLoader:Destroy() end