Function ManagedState.PopNextLinkFromPath
PopNextLinkFromPath
()
Pops the current part, and the next part from the start of the path.
Public
void PopNextLinkFromPath ()
Pops the current part, and the next part from the start of the path.
Called when an agent finishes traversing an off-mesh link, to make it start following the part of the path that comes after the link.
Invariant: an agent's path keeps the off-mesh link it is traversing as its second path part for the whole traversal. Nothing may replace or truncate the path in between, which is why FollowerEntity.SetPath, FollowerEntity.destination and FollowerEntity.position all leave the path alone while the agent is on a link. Throws if the invariant has been broken.