|
local blocker = {}
function OnTick(deltaTime)
local id = game_api.get_owner_role_id()
if blocker[id] or deltaTime == 0 then
return
else
y3.timer.run_single_timer(1, function ()
blocker[id] = nil
end)
blocker[id] = 1
y3.ui.display_system_information_message(y3.player(id), '当前帧数' .. math.floor(1 / deltaTime, 0), 2, false)
end
end
==============
没有几行,直接上代码
|
|