我使用http://api.cocos.com/cn/d3/d82/classcocos2d_1_1_node.html#a3896e9a1095586f629eceee54b6aced0 里面的API
var schedule(var selector,var interval,var repeat,var delay )
以下是我的程式码:
onLoad: function () { this.schedule(testFunc, 1.0, "kRepeatForever" ,3.0, "CountDown");
function testFunc() { console.log("testFunc"); this.unschedule("CountDown"); } },
请问,我的用法哪边有错误吗?
怎么unschedule无法停止schedule呢?