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:
parent
d2b091a565
commit
ead8b3b759
2 changed files with 103 additions and 6 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue