1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Removed reference to waypoint's DrawWaypointMarker method.

This commit is contained in:
Rich Dunne 2020-09-13 03:02:34 -06:00
parent a24350a435
commit acadfed51e

View file

@ -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)