mirror of
https://github.com/ifengzp/cocos-awesome.git
synced 2024-12-24 10:49:06 +00:00
commit
c9ebd90d51
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user