title: How to get The position of a sprite automatically in Unity 2D
body: <p>I'm really new to unity and I'm trying to do a card game , And i get faced with the problem of coordinates . I'm trying to get the position of a the touch and make the sprite move for a specific position in the screen . Here is the my workaround script in c#:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class CardMovement : MonoBehaviour {
  
  // Use this for initialization
  void Start () {
  
  }
  
  // Update is called once per frame
  void Update () {
      Rect recta = new Rect (-4.71f,-3.98f,4.52f,6.8f);
  
      Touch To = new Touch ();
  
      Camera C = GetComponent&lt;Camera&gt;();
  
      Vector3 p = new Vector3 ();
  
      p = C.ScreenToWorldPoint (To.position);
  
      if (recta.Contains(p)== true){
  
          transform.Translate(0.79f,-1.13f,0f);
  
      }
  
  
  }
  }
  </code></pre>
  
  <p>The problem is that i can't get it to move to that specific position .is it because of the coordinates that aren't matching ? and is there a way to get the coordinates of the sprite directly without typing them ?thanks for help ;)  </p>