From 19aee3b717fae9621f5b777893fbd9a80a4e11cf Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Thu, 15 Oct 2020 21:48:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A9=E8=BE=95=E5=AE=9D=E9=95=9C=E9=BB=91?= =?UTF-8?q?=E5=B1=8F=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua index 01ee584bd1..227ec0bba8 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua @@ -98,6 +98,9 @@ function this:RemoveListener() end function this:OnOpen() + if not this.UpView then + this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform) + end this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main }) end @@ -243,6 +246,7 @@ function this:OnClose() self.gameObject:SetActive(false) PlayerManager.carbonType = 2 SubUIManager.Close(this.UpView) + this.UpView = nil end --界面销毁时调用(用于子类重写) @@ -252,6 +256,7 @@ function this:OnDestroy() self.timer = nil end SubUIManager.Close(this.UpView) + this.UpView = nil end --刷新时间