public static ObjectMap<Entity, Entity> targetedEntities = new ObjectMap<>();
public static ObjectMap<Entity, Tile> targetedTiles = new ObjectMap<>();
public static void buildUnit(Building building) {
if (building.tiletyp instanceof BuildingFactory) {
Entitytyp entitytyp = Repository.entitytypObjectMap.values().toArray().get((RandomUtil.getNanoRandom().nextInt(Repository.entitytypObjectMap.size)));
if (Game.redTeam.moneydeduct(entitytyp.cost)) {
building.obj = entitytyp;
}