示例#1
0
 public void BeginArrival(float arrivalRadius)
 {
     DeactivateAll();
     EnableAvoidance(useAvoidance);
     foreach (BaseSteering steering in steeringBehaviours)
     {
         if (steering as Arrive)
         {
             Arrive newSteer = steering as Arrive;
             newSteer.SetActive(true);
             newSteer.SetSlowingRadius(arrivalRadius);
         }
     }
 }