unity move object to where you are code example
Example 1: unity how to move an object to another object
transform.position = new Vector3(GameObject.Find("Object").transform.position.x, GameObject.Find("Object").transform.position.y, GameObject.Find("Object").transform.position.z);
transform.position = new Vector2(GameObject.Find("Object").transform.position.x, GameObject.Find("Object").transform.position.y);
Example 2: unity how to move an object
float x = 10f;
float y = 10f;
float z = 10f;
Vector3 position = new Vector3(x, y, z);
transform.position = position;