If true -> pedestrian will not receive another waypoint.
Example
usingGley.PedestrianSystem;usingUnityEngine;publicclassTest:MonoBehaviour{ // A reference to the pedestrian pool and player assigned in the inspector.publicPedestrianPool PedestrianPool;publicTransform Player;voidStart() {API.Initialize(Player,1, PedestrianPool); }publicvoidCannotPass() {API.DoNotChangeWaypoint(0,true); }publicvoidPass() {API.DoNotChangeWaypoint(0,false); } // Used for demonstration purposes.privatevoidUpdate() {if (Input.GetKeyDown(KeyCode.Alpha1)) { CannotPass(); }if (Input.GetKeyDown(KeyCode.Alpha2)) { Pass(); } }}