Ejemplo n.º 1
0
 private void ReduceScaleForAll()
 {
     foreach (var squad in SquadList.GetIteratorSquadListActive())
     {
         var dispersionCondition = squad.DispersionRelative > MaxDispersionRelative;
         if (dispersionCondition && !squad.IsWaitingForScaling)
         {
             ActionList.ActionScaleSquadToPosition(squad, 0.1, squad.SquadCenter, 60);
         }
     }
 }