@2311359055 写道:
this.node.on(cc.Node.EventType.TOUCH_START, function (event) {
this.gesteStart = event.touch.getLocation();
}
this.node.on(cc.Node.EventType.TOUCH_END, function (event) {
this.gesteEnd = event.touch.getLocation();
}
cc.log(this.gesteStart.x);
cc.log(this.gesteEnd.x);
错误是:gesteStart.x is not defined,这个要在监听里面写才能用
帖子: 5
参与者: 1