I have a Player and a Mob gameobject. I want to get the Player’s Target component to the Mob’s PTarget. My player’s script what does the targeting is called “Targeting”. How can i acces this?
Under the Mob’s script you can use the following (c#):
Transform PTarget = GameObject.Find("PlayerObjectName").GetComponent(typeof(Transform)) as Transform;