protected virtual void registerWithTouchDispatcher() { CCDirector director = CCDirector.sharedDirector; if (_touchMode == kCCTouchesMode.AllAtOnce) { director.touchDispatcher.addStandardDelegate(this, _touchPriority); } else /* one by one */ { director.touchDispatcher.addTargetedDelegate(this, _touchPriority, _touchSwallow); } }
public static void Reset() { _sharedDirector = null; }