For some reason I can’t get this to work. If someone knows of a script reference that applies that would be great. I have an enemy that follows the Player’s transform. I have the enemy as a prefab so I can instantiate it. How can I have the Prefab know what transform to follow? I was hoping to use something like Transform.find but I can’t get it to work. It appears I can’t manually assign the variable in inspector.
In the prefab’s script (psuedocode)
Start() GameObject player = GameObject.FindObjectWithTag("Player"); myTarget = player.transform;
Post back if its more complicated than that.