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

Private/Protected Members

Awake ()
Protected
OnUpgradeSerializedData (version, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
Update ()

Update is called once per frame.

Private
agent
Private
index

Current target index.

Private
switchTime
Private