Skip to content

Commit bd2fd1b

Browse files
author
JasonNumberThirteen
committed
Remove unnecessary method from the map generation manager script
1 parent 9cd5d53 commit bd2fd1b

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

Assets/Project/Scripts/Managers/MapGenerationManager.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,6 @@ public void ResetTiles()
3838
mapTiles.ForEach(mapTile => mapTile.ResetTile());
3939
}
4040

41-
public List<MapTile> GetMapCornersTiles()
42-
{
43-
var mapSize = GetMapSize();
44-
var mapTiles = GetMapTiles();
45-
46-
return mapTiles.Where(mapTile =>
47-
{
48-
var mapTilePosition = mapTile.GetPosition();
49-
var mapTileIsPlacedInTopLeftCorner = mapTilePosition.x == 0 && mapTilePosition.y == 0;
50-
var mapTileIsPlacedInTopRightCorner = mapTilePosition.x == mapSize.x - 1 && mapTilePosition.y == 0;
51-
var mapTileIsPlacedInBottomLeftCorner = mapTilePosition.x == 0 && mapTilePosition.y == mapSize.y - 1;
52-
var mapTileIsPlacedInBottomRightCorner = mapTilePosition.x == mapSize.x - 1 && mapTilePosition.y == mapSize.y - 1;
53-
54-
return mapTileIsPlacedInTopLeftCorner || mapTileIsPlacedInTopRightCorner || mapTileIsPlacedInBottomLeftCorner || mapTileIsPlacedInBottomRightCorner;
55-
}).ToList();
56-
}
57-
5841
public void ChangeMapDimensionsIfNeeded(Vector2 newMapSize)
5942
{
6043
mapDimensions = newMapSize;

0 commit comments

Comments
 (0)