mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Changed public methods to internal
This commit is contained in:
parent
89771ab3df
commit
9cf578f380
2 changed files with 2 additions and 21 deletions
|
|
@ -6,7 +6,7 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
class AITasking
|
class AITasking
|
||||||
{
|
{
|
||||||
public static void AssignWaypointTasks(CollectedVehicle collectedVehicle, List<Waypoint> waypoints, Waypoint currentWaypoint)
|
internal static void AssignWaypointTasks(CollectedVehicle collectedVehicle, List<Waypoint> waypoints, Waypoint currentWaypoint)
|
||||||
{
|
{
|
||||||
if (!VehicleAndDriverNullChecks(collectedVehicle))
|
if (!VehicleAndDriverNullChecks(collectedVehicle))
|
||||||
{
|
{
|
||||||
|
|
@ -115,25 +115,6 @@ namespace SceneManager
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//public static void LoopWhileDrivingToWaypoint(CollectedVehicle collectedVehicle, List<Waypoint> waypoints, int nextWaypoint, float acceptedDistance)
|
|
||||||
//{
|
|
||||||
// while (VehicleAndDriverNullChecks(collectedVehicle) && !collectedVehicle.Dismissed && !collectedVehicle.SkipWaypoint && waypoints.ElementAtOrDefault(nextWaypoint) != null && collectedVehicle.Vehicle.FrontPosition.DistanceTo2D(waypoints[nextWaypoint].Position) > acceptedDistance)
|
|
||||||
// {
|
|
||||||
// //Logger.Log($"Looping while {collectedVehicle.Vehicle.Model.Name} drives to waypoint {waypoints[nextWaypoint].Number} ({collectedVehicle.Vehicle.DistanceTo2D(waypoints[nextWaypoint].Position)}m away from collector radius {waypoints[nextWaypoint].CollectorRadius})");
|
|
||||||
// //Logger.Log($"Distance of front of vehicle to waypoint: {collectedVehicle.Vehicle.FrontPosition.DistanceTo2D(waypoints[nextWaypoint].Position)}");
|
|
||||||
// GameFiber.Yield();
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
//public static void LoopWhileDrivingToWaypoint(CollectedVehicle collectedVehicle, List<Waypoint> waypoints, Waypoint currentWaypoint, float acceptedDistance)
|
|
||||||
//{
|
|
||||||
// while (VehicleAndDriverNullChecks(collectedVehicle) && !collectedVehicle.Dismissed && !collectedVehicle.SkipWaypoint && collectedVehicle.Vehicle.FrontPosition.DistanceTo2D(currentWaypoint.Position) > acceptedDistance)
|
|
||||||
// {
|
|
||||||
// //Logger.Log($"Looping while {collectedVehicle.Vehicle.Model.Name} drives to waypoint {currentWaypoint.Number} ({collectedVehicle.Vehicle.DistanceTo2D(currentWaypoint.Position)}m away)");
|
|
||||||
// GameFiber.Yield();
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
private static float GetAcceptedStoppingDistance(List<Waypoint> waypoints, int nextWaypoint)
|
private static float GetAcceptedStoppingDistance(List<Waypoint> waypoints, int nextWaypoint)
|
||||||
{
|
{
|
||||||
float dist;
|
float dist;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
class Logger
|
class Logger
|
||||||
{
|
{
|
||||||
public static void Log(string message)
|
internal static void Log(string message)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Game.LogTrivialDebug($"{message}");
|
Game.LogTrivialDebug($"{message}");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue