Ejemplo n.º 1
0
 public override Vector2 CalculateSteering(Vehicle agent, List <Vehicle> targets)
 {
     if (path.Count < 2)
     {
         return(Vector2.zero);
     }
     else
     {
         return(Steering.PathFollowing(agent, path, maxDistance, decelerationDistance, loop));
     }
 }