public void menuCallbackDisabled(CCObject pSender) { // hijack all touch events for 5 seconds CCTouchDispatcher.sharedDispatcher().setPriority(-128 - 1, this); base.schedule(this.allowTouches, 5.0f); Debug.WriteLine("TOUCHES DISABLED FOR 5 SECONDS"); }
public override void onExit() { CCTouchDispatcher.sharedDispatcher().removeDelegate(this); }
public override void onEnter() { CCTouchDispatcher.sharedDispatcher().addTargetedDelegate(this, 0, true); base.onEnter(); }
public override void registerWithTouchDispatcher() { CCTouchDispatcher.sharedDispatcher().addStandardDelegate(this, 0); }
public void allowTouches(float dt) { CCTouchDispatcher.sharedDispatcher().setPriority(-128 + 1, this); base.unsheduleAllSelectors(); Debug.WriteLine("TOUCHES ALLOWED AGAIN"); }
public override void registerWithTouchDispatcher() { CCTouchDispatcher.sharedDispatcher().addTargetedDelegate(this, -128 + 1, true); }
public override void registerWithTouchDispatcher() { CCTouchDispatcher.sharedDispatcher().addTargetedDelegate(this, kCCMenuTouchPriority + 1, true); }