diff --git a/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs b/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs index a85acba3..62142521 100644 --- a/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs +++ b/articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs @@ -230,9 +230,6 @@ public static Tilemap FromFile(ContentManager content, string filename) // Get the tileset index for this location int tilesetIndex = int.Parse(columns[column]); - // Get the texture region of that tile from the tileset - TextureRegion region = tileset.GetTile(tilesetIndex); - // Add that region to the tilemap at the row and column location tilemap.SetTile(column, row, tilesetIndex); }