diff options
| author | dereelatwit <54997325+dereelatwit@users.noreply.github.com> | 2023-08-08 15:31:13 -0400 |
|---|---|---|
| committer | dereelatwit <54997325+dereelatwit@users.noreply.github.com> | 2023-08-08 15:31:13 -0400 |
| commit | 98a18e1d4e06bb0f70024c095f3e0f5b0ad69db0 (patch) | |
| tree | 303f2c4d70cf32f612278bb777f43470fc278c77 /Pathfinding Visualizer/Assets/Scripts/Main.cs | |
| parent | aec4fc6d37f7e790c1deef38270caf9d71c236f4 (diff) | |
| parent | 0b31f21419af2926bf000cb21f67de411bde4c77 (diff) | |
Merge branch 'main' of https://github.com/osheas1atwit/pathfinding-visualizer
Diffstat (limited to 'Pathfinding Visualizer/Assets/Scripts/Main.cs')
| -rw-r--r-- | Pathfinding Visualizer/Assets/Scripts/Main.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Pathfinding Visualizer/Assets/Scripts/Main.cs b/Pathfinding Visualizer/Assets/Scripts/Main.cs index a146859..40f47f1 100644 --- a/Pathfinding Visualizer/Assets/Scripts/Main.cs +++ b/Pathfinding Visualizer/Assets/Scripts/Main.cs @@ -33,11 +33,6 @@ public class Main : MonoBehaviour } - public void StartAStar() - { - AStar astar = new AStar(world, 0); - } - // Update contains keyboard shortcut options void Update() { @@ -90,6 +85,12 @@ public class Main : MonoBehaviour } + public void StartAStar() + { + AStar astar = new AStar(world, 0); + } + + public void SetModeObstacle() { placementValue = 1; @@ -107,4 +108,6 @@ public class Main : MonoBehaviour world.reset(); } + + } |
