示例#1
0
 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);
 }
示例#5
0
 public void allowTouches(float dt)
 {
     CCTouchDispatcher.sharedDispatcher().setPriority(-128 + 1, this);
     base.unsheduleAllSelectors();
     Debug.WriteLine("TOUCHES ALLOWED AGAIN");
 }
示例#6
0
 public override void registerWithTouchDispatcher()
 {
     CCTouchDispatcher.sharedDispatcher().addTargetedDelegate(this, -128 + 1, true);
 }
示例#7
0
 public override void registerWithTouchDispatcher()
 {
     CCTouchDispatcher.sharedDispatcher().addTargetedDelegate(this, kCCMenuTouchPriority + 1, true);
 }