FairyGUI.Stage.AddTouchEndMonitor C# (CSharp) Method

AddTouchEndMonitor() private method

private AddTouchEndMonitor ( int touchId, EventDispatcher target ) : void
touchId int
target EventDispatcher
return void
		internal void AddTouchEndMonitor(int touchId, EventDispatcher target)
		{
			TouchInfo touch = null;
			if (touchId == -1)
				touch = _touches[0];
			else
			{
				for (int j = 0; j < 5; j++)
				{
					touch = _touches[j];
					if (touch.touchId == touchId)
						break;
				}
			}
			if (touch.touchEndMonitors.IndexOf(target) == -1)
				touch.touchEndMonitors.Add(target);
		}