📜  lua代码示例中重建的等待函数

📅  最后修改于: 2022-03-11 14:54:55.256000             🧑  作者: Mango

代码示例1
function wait(seconds)
  local start = os.time()
  repeat until os.time() > start + seconds
end

-- This is the wait function (mostly known from roblox)
-- It works exactly like the roblox version
-- It's used like this: wait(how many seconds)