第一次点击有触发事件,再次点击就无效了,好像触摸事件被自动移除了,这个是cocos的bug吗?
this.node.on(Node.EventType.TOUCH_START, ()=> {
console.log('>> touch start ', this.pressedScale)
if (audioMng) audioMng.playButton();
scaleDownTween(this.pressedScale)
}, this)
this.node.on(Node.EventType.TOUCH_END, ()=>{
console.log('>> touch end')
scaleUpTween()
}, this)
this.node.on(Node.EventType.TOUCH_CANCEL, ()=>{
console.log('>> touch cancel')
scaleUpTween()
}, this)