```objc local scheduler = require("framework.scheduler")
--计时器 function MainScene:recoderTime() print(‘测试计时器‘) local function onInterval(dt) print(‘onInterval‘) end -- 每 0.5 秒执行一次 onInterval() local handle = scheduler.scheduleGlobal(onInterval, 0.5) end ```
原文地址:http://www.cnblogs.com/skiy/p/3834126.html