A* Pathfinding Project
4.0.7
The A* Pathfinding Project for Unity 3D
|
Public Types | |
enum | State { SelectUnit, SelectTarget, Move } |
Public Attributes | |
LayerMask | layerMask |
float | movementSpeed |
GameObject | nodePrefab |
State | state = State.SelectUnit |
Private Member Functions | |
void | Awake () |
void | DestroyPossibleMoves () |
void | GeneratePossibleMoves (TurnBasedAI unit) |
T | GetByRay< T > (Ray ray) |
void | HandleButtonUnderRay (Ray ray) |
IEnumerator | MoveToNode (TurnBasedAI unit, GraphNode node) |
void | Select (TurnBasedAI unit) |
void | Start () |
void | Update () |
Static Private Member Functions | |
static IEnumerator | MoveAlongPath (TurnBasedAI unit, ABPath path, float speed) |
Interpolates the unit along the path. | |
Private Attributes | |
EventSystem | eventSystem |
List< GameObject > | possibleMoves = new List<GameObject>() |
TurnBasedAI | selected |
enum State |
|
private |
|
private |
|
private |
|
private |
T | : | class |
|
private |
|
staticprivate |
Interpolates the unit along the path.
|
private |
|
private |
|
private |
|
private |
|
private |
LayerMask layerMask |
float movementSpeed |
GameObject nodePrefab |
|
private |
|
private |
State state = State.SelectUnit |