From d744c010bf089ecaf09fb36734d3ee963a0fed61 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Sat, 5 Jun 2021 11:14:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B8=BB=E5=9F=8E=E3=80=91=E7=BA=A2?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Main/MainPanel.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua index f281b9ea10..3cd831ca97 100644 --- a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua @@ -1298,19 +1298,20 @@ function this:OnClose() this.ChatTipView:StopCheck() PatFaceManager.isLogin = false FixedUpdateBeat:Remove(this.OnUpdate, self) + + for k,v in ipairs(activitys) do + if v.RpType > 0 then + ClearRedPointObject(v.RpType,activityTabs[k].redpot) + -- activityTabs[k].go.gameObject:SetActive(false) + end + end end --界面销毁时调用(用于子类重写) function this:OnDestroy() this.spLoader:Destroy() - for k,v in ipairs(activitys) do - if v.RpType > 0 then - ClearRedPointObject(v.RpType,activityTabs[k].redpot) - activityTabs[k].go.gameObject:SetActive(false) - end - end - activitys = {} activityTabs = {} + activitys = {} SubUIManager.Close(this.UpView) SubUIManager.Close(this.BtView) SubUIManager.Close(this.ChatTipView)