Пример #1
0
        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);
            }
        }
Пример #2
0
 public static void Reset()
 {
     _sharedDirector = null;
 }