Class TargetMover Extends VersionedMonoBehaviour

Public

Moves the target in example scenes.

This is a simple script which has the sole purpose of moving the target point of agents in the example scenes for the A* Pathfinding Project.

It is not meant to be pretty, but it does the job.

Public Methods

OnGUI ()
Start ()

Public Variables

clickEffect
Public
formationMode
Public
mask

Mask for the raycast placement.

Public
target
Public
trigger
Public
use2D
Public

Public Enums

Trigger
Public

Private/Protected Members

Awake ()
OnUpgradeSerializedData (migrations, unityThread)

OptimizeFormationDestinations (ais, destinations)

Swap the destinations of pairs of agents if it reduces the total distance they need to travel.

Reset ()

Handle serialization backwards compatibility.

Update ()

Update is called once per frame.

UpgradeSerializedData (isUnityThread)
cam
Private
onlyOnDoubleClick

Determines if the target position should be updated every frame or only on double-click.

Private