From acadfed51ef2be72073a091b304e322300487c00 Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Sun, 13 Sep 2020 03:02:34 -0600 Subject: [PATCH] Removed reference to waypoint's DrawWaypointMarker method. --- SceneManager/DebugGraphics.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SceneManager/DebugGraphics.cs b/SceneManager/DebugGraphics.cs index b2c6086..606f921 100644 --- a/SceneManager/DebugGraphics.cs +++ b/SceneManager/DebugGraphics.cs @@ -15,8 +15,6 @@ namespace SceneManager { for (int i = 0; i < path.Waypoints.Count; i++) { - path.Waypoints[i].DrawWaypointMarker(); - if (i != path.Waypoints.Count - 1) { DrawLinesBetweenWaypoints(path, i); @@ -28,6 +26,7 @@ namespace SceneManager }); } + // Can this be extracted to the Waypoint or Path object private static void DrawLinesBetweenWaypoints(Path path, int i) { if (path.Waypoints[i + 1].DrivingFlag == VehicleDrivingFlags.StopAtDestination)