tcx_xiyou_yueNan
zhangjiannan 2025-02-17 11:40:58 +08:00
parent a884529fb5
commit 8ae5d5fb4d
1 changed files with 4 additions and 2 deletions

View File

@ -76,8 +76,8 @@ function this:InitComponent()
this.npcRoot = Util.GetGameObject(self.gameObject, "bg/npcRoot") this.npcRoot = Util.GetGameObject(self.gameObject, "bg/npcRoot")
this.decorateRoot = Util.GetGameObject(self.gameObject, "bg/decorate") this.decorateRoot = Util.GetGameObject(self.gameObject, "bg/decorate")
self.ctrl = Util.GetGameObject(self.gameObject, "scene/ctrl") self.ctrl = Util.GetGameObject(self.gameObject, "scene/ctrl")
----------utc时间显示------------
this.utcTimeText = Util.GetGameObject(self.gameObject, "LeftUp/utcTime/Text"):GetComponent("Text")
---------------topLeftPart---------------- ---------------topLeftPart----------------
-- 七日登陆奖励预览入口 -- 七日登陆奖励预览入口
@ -1478,6 +1478,8 @@ function this.OnUpdate()
--主城人物层级处理 --主城人物层级处理
this.OnMainPlayerNPCRefresh() this.OnMainPlayerNPCRefresh()
this.CheckScreenRightRedPoint() this.CheckScreenRightRedPoint()
local date = os.date("*t", GetTimeStamp())
this.utcTimeText.text = string.format(" %02d:%02d", date.hour, date.min) .. "(utc+8)"
end end
--检测屏幕右侧红点 --检测屏幕右侧红点