...
Code Block | ||
---|---|---|
| ||
local TimerId = component.setTimer{delay=1000, callback=OnTimer, data="Some Data"}
function OnTimer(Data)
-- This function will be called when the timer is triggered
trace(Data) -- "Some Data"
end |
...
Code Block | ||
---|---|---|
| ||
local TimerId = component.setTimer{delay=1000, callback=OnTimer, data="Some Data"}
function OnTimer(Data)
-- This function will be called when the timer is triggered
trace(Data) -- "Some Data"
end |