【竞技场】时间到弹出

dev_chengFeng
ZhangBiao 2021-04-30 11:49:45 +08:00
parent 6c673de50a
commit 1980c01573
2 changed files with 13 additions and 0 deletions

View File

@ -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)

View File

@ -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
-- 关闭时间