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.

Public
BlockAt (position)

Block node closest to the specified position.

Public
BlockAtCurrentPosition ()

Block node closest to the position of this object.

Public
Unblock ()

Unblock the last node that was blocked (if any)

Public

Public Variables

lastBlocked
Public
manager
Public

Private/Protected Members

Awake ()
Protected
OnUpgradeSerializedData (migrations, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
UpgradeSerializedData (isUnityThread)
Protected