Class AIDestinationSetter Extends VersionedMonoBehaviour
Public
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.
![](images/aidestinationsetter.png)
Public Variables
target
The object that the AI should move to.
Public
Private/Protected Members
ai
Private
Awake
()
Protected
OnDisable
()
Private
OnEnable
()
Private
OnUpgradeSerializedData
(version, unityThread)
Handle serialization backwards compatibility.
Protected
Update
()
Updates the AI's destination every frame.
Private