mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Removed reference to waypoint's DrawWaypointMarker method.
This commit is contained in:
parent
a24350a435
commit
acadfed51e
1 changed files with 1 additions and 2 deletions
|
|
@ -15,8 +15,6 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
for (int i = 0; i < path.Waypoints.Count; i++)
|
for (int i = 0; i < path.Waypoints.Count; i++)
|
||||||
{
|
{
|
||||||
path.Waypoints[i].DrawWaypointMarker();
|
|
||||||
|
|
||||||
if (i != path.Waypoints.Count - 1)
|
if (i != path.Waypoints.Count - 1)
|
||||||
{
|
{
|
||||||
DrawLinesBetweenWaypoints(path, i);
|
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)
|
private static void DrawLinesBetweenWaypoints(Path path, int i)
|
||||||
{
|
{
|
||||||
if (path.Waypoints[i + 1].DrivingFlag == VehicleDrivingFlags.StopAtDestination)
|
if (path.Waypoints[i + 1].DrivingFlag == VehicleDrivingFlags.StopAtDestination)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue