Stop
格式
Stop( )
- 函数
- 所属对象:RWTimer
简介
停止计时器
。
实例
创建一个计时器,启动计时器一段时候后停止计时器,观察函数是否正确执行。
local timeService=GetService("TimeService")
local index = 0
local function hahalog()
log("haha" .. index)
index = index + 1
print("haha" .. index)
printWarning("haha" .. index)
end
local timer = timeService:CreateTimer(hahalog, 0.1, 100)
timer:Start()
wait(2)
timer:Stop()
文档更新时间: 2020-08-06 14:51 作者:王辰剑