diff --git a/Assets/ManagedResources/~Lua/Modules/Map/View/EndLessMapView.lua b/Assets/ManagedResources/~Lua/Modules/Map/View/EndLessMapView.lua index 419c2e8d5c..a9aa8ba89a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/View/EndLessMapView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/View/EndLessMapView.lua @@ -753,6 +753,19 @@ function EndLessMapView:OnClose() this.timer:Stop() this.timer = nil end + + if UIManager.IsOpen(UIName.GeneralBigPopup) then + UIManager.ClosePanel(UIName.GeneralBigPopup) + end + if UIManager.IsOpen(UIName.GeneralPopup) then + UIManager.ClosePanel(UIName.GeneralPopup) + end + if UIManager.IsOpen(UIName.TrialRewardPopup) then + UIManager.ClosePanel(UIName.TrialRewardPopup) + end + if UIManager.IsOpen(UIName.EndLessTreasurePanel) then + UIManager.ClosePanel(UIName.EndLessTreasurePanel) + end end function EndLessMapView:OnDestroy()