【竞技场、云游商人】竞技场时间到未弹出,云游增加log
parent
2133dc0209
commit
f634ae4e4b
|
@ -1177,8 +1177,10 @@ function this.CheckYunYouManRedPoint()
|
||||||
if id and id > 0 then
|
if id and id > 0 then
|
||||||
local str = PlayerPrefs.GetInt(PlayerManager.uid.."CommonActPage"..ActivityTypeDef.YunYouShangRen)
|
local str = PlayerPrefs.GetInt(PlayerManager.uid.."CommonActPage"..ActivityTypeDef.YunYouShangRen)
|
||||||
if str == 1 then
|
if str == 1 then
|
||||||
|
Log("云游商人红点返回:false")
|
||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
|
Log("云游商人红点返回:true")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -172,7 +172,7 @@ function this.OpenView(index)
|
||||||
end
|
end
|
||||||
|
|
||||||
if logic.OnOpen then
|
if logic.OnOpen then
|
||||||
logic:OnOpen(this.sortingOrder)
|
logic:OnOpen(this.sortingOrder,self)
|
||||||
end
|
end
|
||||||
|
|
||||||
logic.gameObject:SetActive(true)
|
logic.gameObject:SetActive(true)
|
||||||
|
|
|
@ -164,9 +164,10 @@ function ArenaView:RemoveListener()
|
||||||
end
|
end
|
||||||
|
|
||||||
--界面打开时调用(用于子类重写)
|
--界面打开时调用(用于子类重写)
|
||||||
function ArenaView:OnOpen( sortingOrder )
|
function ArenaView:OnOpen( sortingOrder,_parent)
|
||||||
|
|
||||||
this.sortingOrder = sortingOrder or 0
|
this.sortingOrder = sortingOrder or 0
|
||||||
|
this.parent = _parent
|
||||||
|
|
||||||
this.RefreshBaseData()
|
this.RefreshBaseData()
|
||||||
|
|
||||||
|
@ -287,6 +288,9 @@ function this.StartCountTime()
|
||||||
hourText.text = hour
|
hourText.text = hour
|
||||||
|
|
||||||
second = second -1
|
second = second -1
|
||||||
|
if second <= 0 then
|
||||||
|
this.parent:ClosePanel()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
_TimeUpdate()
|
_TimeUpdate()
|
||||||
this.TimeCounter = Timer.New(_TimeUpdate, 1, -1, true)
|
this.TimeCounter = Timer.New(_TimeUpdate, 1, -1, true)
|
||||||
|
|
Loading…
Reference in New Issue