I need help figuring out what I did wrong. I’m working on the Lerpz final cut scene and I get this error. Unknown Identifier ‘playerLink’. Here is where I set the playerLink to find Object “Player” in the level status script.
function Awake()
{
levelGoal.GetComponent(MeshCollider).isTrigger = false;
playerLink = GameObject.Find("Player");
if(!playerLink)
{
Debug.Log("Could not get link to Lerpz");
levelGoal.GetComponent(MeshCollider).isTrigger = false; //make very sure of this
}
}
Here is where it crashes and gives me that error.
playerLink.GetComponent(ThirdPersonController).SendMessage("HidePlayer");
playerLink.transform.position+=Vector3.up*500; //just move the player up 500 units