Skip to content

Commit

Permalink
Change cell visibility representation (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpewsey authored Sep 9, 2022
1 parent a6be2fc commit ca4ab7b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified Plugins/MPewsey.ManiaMap.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Scripts/Runtime/Drawing/LayoutMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private void DrawMapTiles(Texture2D texture, int z)
continue;

// If room state is defined and is not visible, go to next cell.
if (roomState != null && !roomState.VisibleIndexes.Contains(position))
if (roomState != null && !roomState.CellIsVisible(position))
continue;

// Calculate draw position
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Runtime/Drawing/LayoutTilemap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private void DrawMap(Tilemap tilemap, int z)
continue;

// If room state is defined and is not visible, go to next cell.
if (roomState != null && !roomState.VisibleIndexes.Contains(position))
if (roomState != null && !roomState.CellIsVisible(position))
continue;

// Calculate draw position
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.mpewsey.maniamap.unity",
"author": "Matt Pewsey",
"displayName": "ManiaMap.Unity",
"version": "0.0.2",
"version": "0.0.3",
"unity": "2021.2",
"keywords": [
"unity",
Expand Down

0 comments on commit ca4ab7b

Please sign in to comment.