unity current position code example
Example 1: get position of gameobject unity
GameObject.FindGameObjectWithTag("Your_Tag_Here").transform.position;
Example 2: how to get position of gameobject in unity
GameObject.Find("Your_Name_Here").transform.position;