Example #1
0
 //------------------------------------------------------------------
 public Car FindClosestCar(IEnumerable <Car> cars)
 {
     return cars.MinBy (Distance);
 }
Example #2
0
 private IShipAttackable __SelectHighestPriorityAttackTgt(IEnumerable<IShipAttackable> availableAttackTgts) {
     return availableAttackTgts.MinBy(target => Vector3.SqrMagnitude(target.Position - Position));
 }