Skip to content

Commit bccf470

Browse files
authored
Updated FromFile() to remove unused TextureRegion (#193)
Removed redundant TextureRegion region because it's not used in the Method.
1 parent 8ef3295 commit bccf470

File tree

1 file changed

+0
-3
lines changed
  • articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets

1 file changed

+0
-3
lines changed

articles/tutorials/building_2d_games/13_working_with_tilemaps/snippets/tilemap.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ public static Tilemap FromFile(ContentManager content, string filename)
230230
// Get the tileset index for this location
231231
int tilesetIndex = int.Parse(columns[column]);
232232

233-
// Get the texture region of that tile from the tileset
234-
TextureRegion region = tileset.GetTile(tilesetIndex);
235-
236233
// Add that region to the tilemap at the row and column location
237234
tilemap.SetTile(column, row, tilesetIndex);
238235
}

0 commit comments

Comments
 (0)