private Vector3 startpoint;
error in line:
startpoint = UICamera.currentTouch;
startpoint = UICamera.currentTouch.pos;