how to getcomponent transform unity code example
Example 1: unity getcomponent transform.position
GameObject.FindGameObjectWithTag("Your_Tag_Here").transform.position;
Example 2: unity getcomponent transform.position
GameObject.FindGameObjectWithTag("Your_Tag_Here").transform.position;