grid #9

Merged
ktyl merged 4 commits from grid into main 2022-12-07 01:06:04 +01:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 8d122b650f - Show all commits

View File

@ -47,6 +47,9 @@ public class WorldGrid : Node2D
public void ToggleTileHighlight(int x, int y) public void ToggleTileHighlight(int x, int y)
{ {
if (!IsInBounds(x, y))
return;
_tiles[x, y].isHighlighted ^= true; _tiles[x, y].isHighlighted ^= true;
} }