使用 this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchNode, this, true) 注册事件
再使用 this.node.off(cc.Node.EventType.TOUCH_END, this.onTouchNode, this, true) 移除监听事件
再点击按钮仍然可以 触发onTouchNode事件
这两句代码的作用是没有问题的
使用 this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchNode, this, true) 注册事件
再使用 this.node.off(cc.Node.EventType.TOUCH_END, this.onTouchNode, this, true) 移除监听事件
再点击按钮仍然可以 触发onTouchNode事件
这两句代码的作用是没有问题的