Class SingleNodeBlocker Extends VersionedMonoBehaviour

Public

Blocks single nodes in a graph.

This is useful in turn based games where you want units to avoid all other units while pathfinding but not be blocked by itself.

Note

To use this with a movement script, you have to assign the BlockManager's traversal provider to either Seeker.traversalProvider or FollowerEntity.pathfindingSettings.traversalProvider.

Public Methods

Block (node)

Block specified node.

BlockAt (position)

Block node closest to the specified position.

Block node closest to the position of this object.

Unblock ()

Unblock the last node that was blocked (if any)

Public Variables

lastBlocked
Public
manager
Public

Private/Protected Members

Awake ()
OnUpgradeSerializedData (migrations, unityThread)

Handle serialization backwards compatibility.

Reset ()

Handle serialization backwards compatibility.

UpgradeSerializedData (isUnityThread)