Class Patrol Extends MonoBehaviour
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
agent
Private
Awake
()
Private
index
Current target index.
Private
switchTime
Private
Update
()
Update is called once per frame.
Private