diff --git a/Assets/ManagedResources/~Lua/Modules/Arena/View/ArenaView.lua b/Assets/ManagedResources/~Lua/Modules/Arena/View/ArenaView.lua index 571ceb20fc..8f30f46628 100644 --- a/Assets/ManagedResources/~Lua/Modules/Arena/View/ArenaView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Arena/View/ArenaView.lua @@ -288,6 +288,17 @@ function this.StartCountTime() hourText.text = hour second = second -1 + if second <= 0 then + if this.parent then + this.parent:ClosePanel() + else + UIManager.OpenPanel(UIName.MainPanel) + end + if this.TimeCounter then + this.TimeCounter:Stop() + this.TimeCounter = nil + end + end end _TimeUpdate() this.TimeCounter = Timer.New(_TimeUpdate, 1, -1, true) diff --git a/Assets/ManagedResources/~Lua/View/ShopView.lua b/Assets/ManagedResources/~Lua/View/ShopView.lua index 65db1db0e4..5832ee2293 100644 --- a/Assets/ManagedResources/~Lua/View/ShopView.lua +++ b/Assets/ManagedResources/~Lua/View/ShopView.lua @@ -255,6 +255,8 @@ function this:StartTimeCount() local refreshTime = ShopManager.GetShopRefreshLeftTime(localSelf.ShopType) if refreshTime >= 0 then localSelf.refreshTime:GetComponent("Text").text = TimeToHMS(refreshTime) + elseif refreshTime < 0 and localSelf.ShopType == SHOP_TYPE.ARENA_SHOP then + JumpManager.GoJump(20003) end end -- 关闭时间