BBGamelib.CCTouchDispatcher.sortByPriority C# (CSharp) Method

sortByPriority() private method

private sortByPriority ( CCTouchHandler first, CCTouchHandler second ) : int
first CCTouchHandler
second CCTouchHandler
return int
		int sortByPriority(CCTouchHandler first, CCTouchHandler second)
		{
			if (first.priority < second.priority)
				return -1;
			else if (first.priority > second.priority)
				return 1;
			else
				return 0;
		}