A* Pathfinding Project  4.2.4
The A* Pathfinding Project for Unity 3D
TargetMover Class Reference

Moves the target in example scenes. More...

Detailed Description

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 Member Functions

void OnGUI ()
 
void Start ()
 
void UpdateTargetPosition ()
 

Public Attributes

LayerMask mask
 Mask for the raycast placement. More...
 
bool onlyOnDoubleClick
 Determines if the target position should be updated every frame or only on double-click. More...
 
Transform target
 
bool use2D
 

Private Member Functions

void Update ()
 Update is called once per frame. More...
 

Private Attributes

IAstarAI [] ais
 
Camera cam
 

Member Function Documentation

◆ OnGUI()

void OnGUI ( )

◆ Start()

void Start ( )

◆ Update()

void Update ( )
private

Update is called once per frame.

◆ UpdateTargetPosition()

void UpdateTargetPosition ( )

Member Data Documentation

◆ ais

IAstarAI [] ais
private

◆ cam

Camera cam
private

◆ mask

LayerMask mask

Mask for the raycast placement.

◆ onlyOnDoubleClick

bool onlyOnDoubleClick

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

◆ target

Transform target

◆ use2D

bool use2D

The documentation for this class was generated from the following file: