Please help me I do not know how to program I’m having this error and I do not know what to do if someone can help me? And this is the code line
void Awake()
{
nav = GetComponent <UnityEngine.AI.NavMeshAgent>();
controller = GetComponentInParent<Animator>();
player = GameObject.Find("Player").transform;
}