Class Patrol Extends VersionedMonoBehaviour
Public
Simple patrol behavior.
This will set the destination on the agent so that it moves through the sequence of objects in the targets array. Upon reaching a target it will wait for delay seconds.
Public Variables
delay
Time in seconds to wait at each target.
Public
targets
Target points to move to in order.
Public
Inherited Public Members
DrawGizmos
()
Public
Private/Protected Members
agent
Private
Awake
()
Protected
index
Current target index.
Private
OnUpgradeSerializedData
(version, unityThread)
Handle serialization backwards compatibility.
Protected
Reset
()
Handle serialization backwards compatibility.
Protected
switchTime
Private
Update
()
Update is called once per frame.
Private