打開一個定時器:code
schedulerID = cc.Director:getInstance():getScheduler():scheduleScriptFunc(調用的function, 定時時間(秒), 是否暫停(true, false))
關閉定時器:ip
cc.Director:getInstance():getScheduler():unscheduleScriptEntry(schedulerID)