mirror of
https://github.com/ifengzp/cocos-awesome.git
synced 2024-12-25 19:29:20 +00:00
commit
c9ebd90d51
@ -22,8 +22,8 @@ export default class Scratch_ticket extends cc.Component {
|
|||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.ticketNode.off(cc.Node.EventType.TOUCH_START, this.touchStartEvent, this);
|
this.ticketNode.off(cc.Node.EventType.TOUCH_START, this.touchStartEvent, this);
|
||||||
this.ticketNode.off(cc.Node.EventType.TOUCH_MOVE, this.touchMoveEvent, 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.off(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_CANCEL, this.touchEndEvent, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
touchStartEvent(event) {
|
touchStartEvent(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user