File tree Expand file tree Collapse file tree
Assets/Project/Scripts/Managers Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments