I have this code:
void Start () {
Control = GameObject.FindGameObjectWithTag ("TouchControl");
}
void Update () {
if (Input.touchCount > 0) {
Control.transform.position = Input.GetTouch (0).position;
Debug.Log (Input.GetTouch (0).position);
}
}
I want the Control Game Object to be moved wherever i touch on the screen, but it keeps going far off… Thanks for the help!