Interface
PatrolComp
:waypoints
: Vec2[] | undefinedpatrolSpeed
: numbernextLocation
: Vec2 | undefinedonPatrolFinished
(cb: (objects: GameObj[]) => void): KEventControllerAttaches an event handler which is called when using "stop" and the end of the path is reached.
param
cbThe event handler called when the patrol finishes.