如题,省略版代码如下:
init : function(){
this.unscheduleUpdate();
this.scheduleUpdate();
},
update : function(dt){
}
在web上能运行update函数,在jsb下却不能,这是为什么?
如题,省略版代码如下:
init : function(){
this.unscheduleUpdate();
this.scheduleUpdate();
},
update : function(dt){
}
在web上能运行update函数,在jsb下却不能,这是为什么?
是不是一般用这个方法编译成apk都可以运行update函数的?不要不说话啊
问题解决了。
要在jsb下运用update函数的话,那么schedule要写在onEnter方法里面,不能使ctor也不能是Init
不对吧 是不是没调用this._super()的缘故啊