void MoveTouch(Touch t) { if (touchCursors.ContainsKey(t.fingerId)) { TouchCursor c = touchCursors[t.fingerId]; c.phase = TouchCursor.Phase.Move; c.ray = FindTouchRay(t); CallListener(c); c.CallListener(); } }
void NewTouch(Touch t) { int index = t.fingerId; TouchCursor c = new TouchCursor(t, FindTouchRay(t)); touchCursors[index] = c; c.phase = TouchCursor.Phase.Down; CallListener(c); c.CallListener(); }