From 35712b99de5c9992d9bc17cce07f58e2dcea72be Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Wed, 2 Sep 2020 15:31:02 +0800 Subject: [PATCH] xuanyuan commit --- .../~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua index dbab7ecd06..bdd3709711 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/XuanYuanMirrorPanel.lua @@ -9,22 +9,22 @@ local type = { [1] = { bg = "ui_fb_btn_jy", name = Language[12299], - gameObject = "btnRoot/circle/root/renjiebaojing" , + gameObject = "renjiebaojing" , }, [2] = { bg = "ui_fb_btn_gh", name = Language[12300], - gameObject = "btnRoot/circle/root/fuochanbaojing" , + gameObject = "fuochanbaojing" , }, [3] = { bg = "ui_fb_btn_sl", name = Language[12301], - gameObject = "btnRoot/circle/root/yaolingbaojing" , + gameObject = "yaolingbaojing" , }, [4] = { bg = "ui_fb_btn_jq", name = Language[12302], - gameObject = "btnRoot/circle/root/daoxuanbaojing" , + gameObject = "daoxuanbaojing" , }, } @@ -125,10 +125,9 @@ this.UpdateCarbonContent = function(...) local temp = temp[1] if index and index >= 0 then Timer.New(function() - LogYellow("收到消息,刷新界面") local openFunctions = {} for k,v in pairs(type) do - local go = Util.GetGameObject(this.gameObject, v.gameObject) + local go = Util.GetGameObject(this.AnimRoot, v.gameObject) go:GetComponent("Image").sprite = Util.LoadSprite(v.bg) Util.GetGameObject(go, "titileBg/Text"):GetComponent("Text").text =v.name local state = XuanYuanMirrorManager.GetMirrorState(k) == 1 @@ -204,6 +203,7 @@ function this:OnDestroy() self.timer:Stop() self.timer = nil end + type = {} end --刷新时间