I’ve learned a lot on how to approach some problems in Unity and to not be as afraid to create more and more singletons etc.
Also learned to appreciate events
Regarding the pathfinding, I really expected that some cleanup/refactoring would be done in order to not recompute the path finding like 2 times per tile.
Also the data-structure usage is less than ideal and it hurt my computer science soul a bit to only see List
when for example the closedList
really should be a HashSet
.
The priority queue with List, searching through the lowest F-Cost also hurt a bit
Anyways, it works and those who want can improve it, but imo it was a great excuse to mention other data structures.