title: Is there a better way to move?
body: <p>Right now I this is how I am moving:</p>
  
  <pre><code>foreach (var touch in Input.touches) {
      if (touch.phase == TouchPhase.Began) {
          startPos = touch.position;
          endPos = touch.position;
      }
      if (touch.phase == TouchPhase.Moved) {
          endPos = touch.position;
      }
  
      if(touch.phase == TouchPhase.Ended){
          //Left
          if ((startPos.x - endPos.x) &gt; 30) {
              Move (new Vector3 (-1, 0, 0));
          }
          //Right
          else if ((endPos.x - startPos.x) &gt; 30) {
              Move (new Vector3 (1, 0, 0));
          }
          //Down
          else if ((startPos.y - endPos.y) &gt; 30) {
              Move (new Vector3 (0, 0, -1));
          }
          //Up
          else {
              Move (new Vector3 (0, 0, 1));
          }
      }
  }
  </code></pre>
  
  <p>This works most of the time but sometimes it goes in the wrong direction. I want to move right by swiping right, left by swiping left, back by swiping down, and forward by moving forward or tapping. Is there a better way to do it?</p>