this.node.on(cc.Node.EventType.TOUCH_END, function (event) {
cc.log(“TOUCH_END1”)
});
//必须先注册on,不然_touchListener报空
this.node._touchListener.setSwallowTouches(false);
cocos creator触摸吞噬
最新推荐文章于 2023-09-05 23:19:21 发布
this.node.on(cc.Node.EventType.TOUCH_END, function (event) {
cc.log(“TOUCH_END1”)
});
//必须先注册on,不然_touchListener报空
this.node._touchListener.setSwallowTouches(false);