simple android swipe controls for level selection?

So I am having serious troubles getting any form of swiping to be detected. All I want to do is transform an objects x value ±1. This is for a menu that would look like most polular mobile level selection menus. Is there an easy way to do this? If so, where should I start? I have already tried the quick swipe script and can’t get it to work.

Drag an empty Game object to the scene attach the following script to it.
I hope this will help.

using UnityEngine;
using System.Collections;

public class SwipeTest : MonoBehaviour
{

Vector2 StartPos;
int SwipeID = -1;
float minMovement = 20.0f;
// Use this for initialization
void Start ()
{
	
}
// Update is called once per frame
void Update ()
{
	foreach (var T in Input.touches) {
		var P = T.position;
		if (T.phase == TouchPhase.Began && SwipeID == -1) {
			SwipeID = T.fingerId;
			StartPos = P;
		} else if (T.fingerId == SwipeID) {
			var delta = P - StartPos;
			if (T.phase == TouchPhase.Moved && delta.magnitude > minMovement) {
				SwipeID = -1;
				if (Mathf.Abs (delta.x) > Mathf.Abs (delta.y)) {
					if (delta.x > 0) {
						
						Debug.Log ("Swipe Right Found");
					} else {
						
						Debug.Log ("Swipe Left Found");
					}
				} 
				else {
					if (delta.y > 0) {
						
						Debug.Log ("Swipe Up Found");
					} else {
						
						Debug.Log ("Swipe Down Found");
					}
				}
			} else if (T.phase == TouchPhase.Canceled || T.phase == TouchPhase.Ended)
				SwipeID = -1;
		} 
	}
}   

}