Merge branch 'master' of github.com:ifengzp/cocos-awesome

This commit is contained in:
ifengzp 2024-05-15 23:23:51 +08:00
commit 16ccbde61f

View File

@ -22,8 +22,8 @@ export default class Scratch_ticket extends cc.Component {
beforeDestroy() {
this.ticketNode.off(cc.Node.EventType.TOUCH_START, this.touchStartEvent, this);
this.ticketNode.off(cc.Node.EventType.TOUCH_MOVE, this.touchMoveEvent, this);
this.ticketNode.on(cc.Node.EventType.TOUCH_END, this.touchEndEvent, this);
this.ticketNode.on(cc.Node.EventType.TOUCH_CANCEL, this.touchEndEvent, this);
this.ticketNode.off(cc.Node.EventType.TOUCH_END, this.touchEndEvent, this);
this.ticketNode.off(cc.Node.EventType.TOUCH_CANCEL, this.touchEndEvent, this);
}
touchStartEvent(event) {