示例#1
0
 protected override LivingUnit OnCreateUnit(PlayerData playerData, UnitManager unitManager)
 {
     return(new LivingUnit(LivingUnitDataEntries[Random.Range(0, LivingUnitDataEntries.Count)], playerData, unitManager));
 }
示例#2
0
 private bool RespectsAttackTypes(UnitManager targetUnitManager)
 {
     return((targetUnitManager.IsAirUnit && CanAttackAir) ||
            (targetUnitManager.IsGroundUnit && CanAttackGround));
 }