Problem in making Wapoints using NavMesh

Just tried to do patrol using waypoints in my own way. OnTriggerEnter function is not responding (IsTrigger is checked on Inspector). What’s wrong in this code?

2934308–217041–NewBehaviourScript.cs (1.2 KB)

To get OnTriggerEnter called, one of the objects must have a Rigidbody. That’s a pretty common reason for failure.

Reference: