LuaHandleSyncAchievementShowState = {} function LuaHandleSyncAchievementShowState.HandlePacket(mem) require "LuaDistributesSyncAchievementShowState" packet = LuaDistributesSyncAchievementShowState.ExtraPacket(mem) --print(packet) local btnFunc = CS.FunctionButtonLogic.Instance().gameObject:GetComponentInChildren(typeof(CS.LuaUIBehaviour), true) print("packet.state : ", packet.state) if packet.state == 1 then if not btnFunc.gameObject.activeInHierarchy then btnFunc.gameObject:SetActive(true) end else btnFunc.gameObject:SetActive(false) end btnFunc:CallScriptFuncAtPath("FlyRoadEnterfaceIcon.ShowRedIcon", packet.redPoint == 1) end