grid #9
|
@ -47,6 +47,9 @@ public class WorldGrid : Node2D
|
|||
|
||||
public void ToggleTileHighlight(int x, int y)
|
||||
{
|
||||
if (!IsInBounds(x, y))
|
||||
return;
|
||||
|
||||
_tiles[x, y].isHighlighted ^= true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue