diff options
| author | Simon O'Shea <osheas1@wit.edu> | 2023-08-08 13:10:51 -0400 |
|---|---|---|
| committer | Simon O'Shea <osheas1@wit.edu> | 2023-08-08 13:10:51 -0400 |
| commit | f825ec9c278af326bde56524a08888d067b2a68f (patch) | |
| tree | cbd098364eacb500a22168268a4d87c17ddb57a2 /Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs | |
| parent | 219d21173eca4d9ddb033d12555a160a6021d89c (diff) | |
slop of code
intermediate push so logan can have access to reset function
Diffstat (limited to 'Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs')
| -rw-r--r-- | Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs b/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs index 2428594..212eb91 100644 --- a/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs +++ b/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs @@ -97,7 +97,6 @@ public class LogicGrid x = x, y = y }); - ; } } @@ -133,4 +132,16 @@ public class LogicGrid { return this.cellSize; } + + public void reset() + { + gridArray = new int[width, height]; + + if (OnGridValueChanged != null) + OnGridValueChanged(this, new OnGridValueChangedEventArgs + { + x = -1, + y = -1 + }); + } } |
