From 3c6043d32c43bdfc3e79ec6479a71990a1119ac8 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Mon, 3 Aug 2020 17:07:24 +0800 Subject: [PATCH] destroy guildmaincitypanel close playerheadview --- .../ManagedResources/~Lua/Modules/Guild/GuildMainCityPanel.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/GuildMainCityPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/GuildMainCityPanel.lua index 619324c94d..450314c7c8 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/GuildMainCityPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/GuildMainCityPanel.lua @@ -578,6 +578,7 @@ function GuildMainCityPanel:OnDestroy() SubUIManager.Close(this.ChatTipView) SubUIManager.Close(this.UpView) SubUIManager.Close(this.BtView) + SubUIManager.Close(this.playerHead) -- 移除红点 -- ClearRedPointObject(RedPointType.Guild_Boss) for type, data in pairs(_GuildBuildConfig) do @@ -593,6 +594,8 @@ function GuildMainCityPanel:OnDestroy() ClearRedPointObject(RedPointType.Guild_RedPacket, this.btnRedPacketRedPoint) ClearRedPointObject(RedPointType.Setting, this.headRedpot) ClearRedPointObject(RedPointType.VipPrivilege, this.vipRedPoint) + + this.playerHead = nil end return GuildMainCityPanel \ No newline at end of file