how to get coordinates of game object unity code example
Example: unity go to coordinate
public Transform target; public float speed; void Update() { float step = speed * Time.deltaTime; transform.position = Vector3.MoveTowards(transform.position, target.position, step); }