BBGamelib.CCTouchDispatcher.addStandardDelegate C# (CSharp) Method

addStandardDelegate() public method

public addStandardDelegate ( CCTouchAllAtOnceDelegate aDelegate, int priority ) : void
aDelegate CCTouchAllAtOnceDelegate
priority int
return void
		public void addStandardDelegate(CCTouchAllAtOnceDelegate aDelegate, int priority)
		{
			CCTouchHandler handler = new CCStandardTouchHandler(aDelegate, priority);
			if( ! locked ) {
				forceAddHandler(handler, standardHandlers);
			} else {
				if(!removeDelegate(aDelegate, handlersToRemove)){
					handlersToAdd.Add(handler);
					toAdd = true;
				}
			}
		}