From 2dcb6ea96d73b29ddd5d6fd302330a004348c47d Mon Sep 17 00:00:00 2001 From: Simon O'Shea Date: Tue, 8 Aug 2023 16:29:52 -0400 Subject: things are broken --- Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs | 50 ---------------------- 1 file changed, 50 deletions(-) (limited to 'Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs') diff --git a/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs b/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs index c87514e..212eb91 100644 --- a/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs +++ b/Pathfinding Visualizer/Assets/Scripts/LogicGrid.cs @@ -18,12 +18,6 @@ public class LogicGrid // Debug Grid Array used for updating the text-objects private TextMesh[,] debugTextArray; - - // Coordinates for pathfinding - public int[] agent; - public List obstacles; - public List samples; - public event EventHandler OnGridValueChanged; public class OnGridValueChangedEventArgs : EventArgs { @@ -103,46 +97,6 @@ public class LogicGrid x = x, y = y }); - - // If deleting a cell's value, remove coord from set - if (value == 0) - { - - // make behavior to check for -1 values in coords - if (agent[0].Equals(x) && agent[1].Equals(y)) - { - agent[0] = -1; - agent[1] = -2; - } - - } - - // Add coordinate to obstacle array - if (value == 1) - { - int[][] coord = new int[2][]; - - coord[0][0] = x; - coord[1][0] = y; - - obstacles.Add(coord); - } - // Add coordinate to sample array - if (value == 2) - { - int[][] coord = new int[2][]; - - coord[0][0] = x; - coord[1][0] = y; - - samples.Add(coord); - } - // Add coordinate to obstacle array - if (value == 3) - { - agent[0] = x; - agent[1] = y; - } } } @@ -183,10 +137,6 @@ public class LogicGrid { gridArray = new int[width, height]; - agent = new int[2]; - obstacles = new List(); - samples = new List(); - if (OnGridValueChanged != null) OnGridValueChanged(this, new OnGridValueChangedEventArgs { -- cgit v1.3.1-4-g156e