unity C# how to get the object a script is in position code example
Example 1: get position of any gameobject in unity
GameObject.Find("Your_Name_Here").transform.position;
Example 2: get position of gameobject unity
GameObject.FindGameObjectWithTag("Your_Tag_Here").transform.position;