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

This cannot be used together with any movement script as the nodes are not blocked in the normal way.

See

TurnBasedAI for example usage

BlockManager

Utilities for turn-based games

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 (version, unityThread)

Handle serialization backwards compatibility.

Protected