Can anyone please tell me what's wrong in my code. I have spent last 3 hours searching for the issue. It seems like it works for everyone but me.
public class FollowYou : MonoBehaviour {
GameObject followThis;
void Start(){
followThis = (GameObject) GameObject.Find("activePlayer");
transform.parent = followThis.transform;
}
}
↧