Facing an error while scripting for EnemySight

Hello Everyone,

I was referring to the tutorials of “Stealth Mission” and i was scripting for ‘enemy sight’ but facing an error which is “UnityEngine.NavMeshAgent does not contains definition for corners” but in the video tutorial they hv used corner function… and in my script is now in red colour…

please help me.

Thanks in advance.

It just says you need to define the corner var. You might have missed that, or put it in the wrong place, please provide the script that causes the error.