【竞技场、云游商人】竞技场时间到未弹出,云游增加log

dev_chengFeng
ZhangBiao 2021-04-29 17:42:35 +08:00
parent 2133dc0209
commit f634ae4e4b
3 changed files with 8 additions and 2 deletions

View File

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

View File

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

View File

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