I cannot take credit for that , the pathfinding uses a asset called A* Pathfinding , you should check it out :) Link is in my game description.