public Triangle path(Triangle dest) { reset(); Debug.Log ("reset1 complete"); reset2 (); Debug.Log ("reset 2 complete"); dest.setHeuristics(); Debug.Log ("heuristics have been set"); reset2 (); return AStar(); }