local scheduler = cc.Director:getInstance():getScheduler() local function shouldNotCrash(dt) end local function StressTest1_onEnterOrExit(tag) if tag == "enter" then StressTest1_entry = scheduler:scheduleScriptFunc(shouldNotCrash, 1.0, false) elseif tag == "exit" then scheduler:unscheduleScriptEntry(StressTest1_entry) end end