A* Pathfinding Project
4.1.20
The A* Pathfinding Project for Unity 3D
|
Sets the destination of an AI to the position of a specified object. More...
Sets the destination of an AI to the position of a specified object.
This component should be attached to a GameObject together with a movement script such as AIPath, RichAI or AILerp. This component will then make the AI move towards the target set on this component.
Public Attributes | |
Transform | target |
The object that the AI should move to. | |
Private Member Functions | |
void | OnDisable () |
void | OnEnable () |
void | Update () |
Updates the AI's destination every frame. | |
Private Attributes | |
IAstarAI | ai |
Additional Inherited Members | |
Public Member Functions inherited from IVersionedMonoBehaviourInternal | |
int | OnUpgradeSerializedData (int version, bool unityThread) |
Protected Member Functions inherited from VersionedMonoBehaviour | |
virtual void | Awake () |
virtual int | OnUpgradeSerializedData (int version, bool unityThread) |
Handle serialization backwards compatibility. | |
|
private |
|
private |
|
private |
Updates the AI's destination every frame.
|
private |
Transform target |
The object that the AI should move to.