Пример #1
0
 private void CheckCars()
 {
     for (int c = activeCars.Count - 1; c >= 0; --c)
     {
         CarAI car = activeCars[c];
         if (Vector3.Distance(car.transform.position, trafficCenter) > city.transform.lossyScale.x * maxCarDistanceInCells)
         {
             car.ResetParticle();
         }
     }
 }