internal void INTERNAL_MoveTouch(int id, Vector2 position)
{
lock (touchLock)
{
TouchPoint touch;
if (!idToTouch.TryGetValue(id, out touch))
{
// This touch was added this frame
touch = touchesBegan.Find((t) => t.Id == id);
// No touch with such id
if (touch == null)
{
#if TOUCHSCRIPT_DEBUG
Debug.LogWarning("TouchScript > Touch with id [" + id + "] is requested to MOVE to " + position +
" but no touch with such id found.");
#endif
return;
}
}
touch.INTERNAL_SetPosition(position);
if (!touchesUpdated.Contains(id)) touchesUpdated.Add(id);
}
}