Пример #1
0
 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));
 }
Пример #2
0
 public static void AddMergedCollisionFromTilesWithProperty(this TileShapeCollection tileShapeCollection, LayeredTileMap layeredTileMap, string propertyName)
 {
     tileShapeCollection.AddMergedCollisionFrom(
         layeredTileMap, (list) => list.Any(item => item.Name == propertyName));
 }