LuaHandleRetBossHomeSetBossRss = {} function LuaHandleRetBossHomeSetBossRss.HandlePacket(mem) require "LuaDistributesRetBossHomeSetBossRss" packet = LuaDistributesRetBossHomeSetBossRss.ExtraPacket(mem) --print(packet) local uiObj = CS.LuaUIManager.Instance:GetUIInstance("ExtraBossRoot") if uiObj == nil then print("uiObj is nil") return --没打开界面不处理 end uiObj:GetComponent("LuaUIBehaviour"):CallScriptFuncAtPath("ExtraBossRoot.BossFocus", packet) end