【竞技场】时间到弹出
parent
6c673de50a
commit
1980c01573
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
-- 关闭时间
|
||||
|
|
Loading…
Reference in New Issue