咋样才能在执行动作的时候屏蔽事件

我监听了一个事件
this.node.on(‘touchend’, function (event) {
var location = event.touch.getLocation();
playerS.jumpOnce(this.touchLeftOrRight(location), this.playerIsROrL(), this.player);
}, this);
然后呢每点击一次就让主角进行一次Action,Action我写在其他模块里的,playerS是require其他模块来的。
然后我像让主角执行动作的时候只监听事件,不触发事件的回调,也就是在主角执行action的时候不能让主角执行其他action。又不想增加两个模块的耦合性,请问我该怎么办?
谢谢各位大佬,有机会请大家吃草。

动作开始时屏蔽事件
cc.eventManager.pauseTarget(this.node, true);
动作结束后恢复事件
cc.eventManager.resumeTarget(this.node, true);
http://cocos.com/docs/creator/api/classes/eventManager.html#method_pauseTarget

或者playerS中jump开始时设置playerS.jumping = true,结束后playerS.jumping =false;
touchend事件中判断playerS.jumping === false再调用playerS.jumpOnce。

谢了,我2了。我怎么没想到把屏蔽事件写在动作执行前。
居然一心想写在触发事件的回调里面。