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