From 8abe558f6c2f98a9c9f6e7ef4018be8ac1a213ed Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Wed, 30 Jun 2021 14:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E7=95=8C=E9=9D=A2=E6=97=B6?= =?UTF-8?q?=20=E7=A7=B0=E5=8F=B7=E9=A2=84=E8=AE=BE=E6=9C=AA=E5=85=B3?= =?UTF-8?q?=E9=97=AD=20=E9=94=99=E8=AF=AF=20=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/PlayerInfoPopup.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua index 4b0b027e56..0434ea3695 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua @@ -231,6 +231,10 @@ function this.RefreshPlayerInfo(data) -- sortingorder = this.sortingOrder -- end LogError("title=="..title) + if titleLive then + SubUIManager.Close(titleLive) + titleLive = nil + end if not titleLive then titleLive = SubUIManager.Open(SubUIConfig.PlayerTitle, this.titlePar.transform) titleLive:SetShow(title, Vector3.New(0,0,0), 0.5, 0.03*20, this.sortingOrder) @@ -464,6 +468,10 @@ end --界面关闭时调用(用于子类重写) function PlayerInfoPopup:OnClose() this.imprintObj:SetActive(false) + if titleLive then + SubUIManager.Close(titleLive) + titleLive = nil + end end --界面销毁时调用(用于子类重写)