mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Updated reference to vehicle tasking based on AITasking refactor. Fixed speed zone radius not updating correctly.
This commit is contained in:
parent
ebf8884842
commit
a187d8bac9
1 changed files with 3 additions and 3 deletions
|
|
@ -97,7 +97,7 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
IsCollector = true;
|
IsCollector = true;
|
||||||
RemoveSpeedZone();
|
RemoveSpeedZone();
|
||||||
SpeedZone = World.AddSpeedZone(currentWaypoint.Position, SpeedZoneRadius, speed);
|
SpeedZone = World.AddSpeedZone(currentWaypoint.Position, speedZoneRadius, speed);
|
||||||
Blip.Color = Color.Blue;
|
Blip.Color = Color.Blue;
|
||||||
if (CollectorRadiusBlip)
|
if (CollectorRadiusBlip)
|
||||||
{
|
{
|
||||||
|
|
@ -321,8 +321,8 @@ namespace SceneManager
|
||||||
if (collectedVehicle == null)
|
if (collectedVehicle == null)
|
||||||
{
|
{
|
||||||
CollectedVehicle newCollectedVehicle = AddVehicleToCollection(vehicle);
|
CollectedVehicle newCollectedVehicle = AddVehicleToCollection(vehicle);
|
||||||
//Logger.Log($"Vehicle's front position distance to waypoint: {vehicle.FrontPosition.DistanceTo2D(waypoint.Position)}, collector radius: {waypoint.CollectorRadius}");
|
GameFiber AssignTasksFiber = new GameFiber(() => newCollectedVehicle.AssignWaypointTasks(Path, this));
|
||||||
GameFiber AssignTasksFiber = new GameFiber(() => AITasking.AssignWaypointTasks(newCollectedVehicle, Path, this));
|
//GameFiber AssignTasksFiber = new GameFiber(() => AITasking.AssignWaypointTasks(newCollectedVehicle, Path, this));
|
||||||
AssignTasksFiber.Start();
|
AssignTasksFiber.Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue