A* Pathfinding Project
4.1.7
The A* Pathfinding Project for Unity 3D
|
Moves the target in example scenes. More...
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 |
void OnGUI | ( | ) |
void Start | ( | ) |
|
private |
Update is called once per frame.
void UpdateTargetPosition | ( | ) |
|
private |
|
private |
LayerMask mask |
Mask for the raycast placement.
bool onlyOnDoubleClick |
Determines if the target position should be updated every frame or only on double-click.
Transform target |
bool use2D |