public void FindPath() { astar = new AStar <Vector3>(); Vector3 startPos = tileGraph.WorldToTileCenter(start.position); Vector3 goalPos = tileGraph.WorldToTileCenter(goal.position); path = astar.PathFind(tileGraph, startPos, goalPos, new EuclideanHeuristic(goalPos)); if (path != null) { Debug.Log("Found Path: " + path); } else { Debug.Log("No Path Found"); } }