使用以下的代码在GameScene中注册触摸
this.node.on("touchstart",function(event) {
//var point=event.getLocation();
},this);
this.node.on("touchmove",function(event) {
cc.log("touchmove");
var detail=event.getDelta();
for(var i=0;i<blockArray.length;++i){
blockArray[i].x+=detail.x;
}
that.blockFix();
//cc.log("detail.x"+detail.x+" detail.y"+detail.y);
},this);
通过StartScene进入GameScene以上的代码可以使用能实现功能
但是从GameScene返回StartScene再次进入的时候触摸就失效了
以下为报错:
是否在退出GameScene到StartScene的时候需要在销毁方法里面取消触摸监听?

