mirror of
https://github.com/ifengzp/cocos-awesome.git
synced 2024-12-25 03:09:19 +00:00
Merge branch 'master' of github.com:ifengzp/cocos-awesome
This commit is contained in:
commit
16ccbde61f
@ -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