Simple patrol behavior.  
 More...
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.
- See also
 - Pathfinding.AIDestinationSetter 
 
- 
Pathfinding.AIPath 
 
- 
Pathfinding.RichAI 
 
- 
Pathfinding.AILerp 
 
 
◆ Awake()
◆ Update()
Update is called once per frame. 
 
 
◆ agent
◆ delay
Time in seconds to wait at each target. 
 
 
◆ index
◆ switchTime
  
  
      
        
          | float switchTime = float.PositiveInfinity | 
         
       
   | 
  
private   | 
  
 
 
◆ targets
Target points to move to in order. 
 
 
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Behaviors/Patrol.cs