public static void AddMergedCollisionFromTilesWithType(this TileShapeCollection tileShapeCollection, LayeredTileMap layeredTileMap, string type) { tileShapeCollection.AddMergedCollisionFrom( layeredTileMap, (list) => list.Any(item => item.Name == "Type" && (item.Value as string) == type)); }
public static void AddMergedCollisionFromTilesWithProperty(this TileShapeCollection tileShapeCollection, LayeredTileMap layeredTileMap, string propertyName) { tileShapeCollection.AddMergedCollisionFrom( layeredTileMap, (list) => list.Any(item => item.Name == propertyName)); }