事件 定时器 修订记录 发布版本 2024.3703 关键词 定时器,来源 另请参阅 定时器
指向注册以发送事件的计时器的引用。如果您有多个计时器调用同一监听器,这可能很有用。
local function listener( event ) -- Print the reference to the timer print( event.source ) end timer.performWithDelay( 1000, listener )