예제 #1
0
 public static bool Is(this Unit unit, UnitType unitType) => unit.UnitType.Type == unitType;
예제 #2
0
 public static bool IsTraining(this Unit unit, UnitType wantedType) =>
 unit.TrainingQueue.Any() && unit.TrainingQueue.First().Type == wantedType;