1. LogicUpdater.lua
--[[
-- 游戏逻辑Updater,游戏逻辑模块可能需要严格的驱动顺序
--]]

local LogicUpdater = BaseClass("LogicUpdater", UpdatableSingleton)
local traceback = debug.traceback

local function Update(self)
	local delta_time = Time.deltaTime
	local hallConnector = HallConnector:GetInstance()
	local status,err = pcall(hallConnector.Update, hallConnector)
	if not status then
		Logger.LogError("hallConnector update err : "..err.."\n"..traceback())
	end
end

local function LateUpdate(self)
end

local function FixedUpdate(self)
end

local function Dispose(self)
end

LogicUpdater.Update = Update
LogicUpdater.LateUpdate = LateUpdate
LogicUpdater.FixedUpdate = FixedUpdate
LogicUpdater.Dispose = Dispose

return LogicUpdater

支付宝捐赠

4. Unity3d Lua框架 - xLua - LogicUpdater

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2021-11-16
  • 2021-08-25
  • 2021-06-23
  • 2021-03-30
  • 2021-12-29
猜你喜欢
  • 2021-07-19
  • 2022-12-23
  • 2021-08-22
  • 2021-11-09
  • 2022-01-16
  • 2022-01-11
相关资源
相似解决方案