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

Moved waypoint collection code to Path object

This commit is contained in:
Rich Dunne 2020-10-18 19:38:49 -06:00
parent d2b091a565
commit ead8b3b759
2 changed files with 103 additions and 6 deletions

View file

@ -211,12 +211,13 @@ namespace SceneManager
GameFiber.StartNew(() =>
{
foreach(Waypoint waypoint in PathMainMenu.paths[i].Waypoints)
{
GameFiber WaypointVehicleCollectorFiber = new GameFiber(() => waypoint.CollectVehicles(PathMainMenu.paths));
WaypointVehicleCollectorFiber.Start();
GameFiber.Sleep(1000);
}
currentPath.LoopWaypointCollection();
//foreach(Waypoint waypoint in PathMainMenu.paths[i].Waypoints)
//{
// GameFiber WaypointVehicleCollectorFiber = new GameFiber(() => waypoint.CollectVehicles(PathMainMenu.paths));
// WaypointVehicleCollectorFiber.Start();
// GameFiber.Sleep(1000);
//}
});
PathMainMenu.createNewPath.Text = "Create New Path";