diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index 47b12b6..db3417e 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -2932,7 +2932,7 @@ MonoBehaviour: mainPlanContainer: {fileID: 557435656} emergencyPlanContainer: {fileID: 632826360} reconfigurationToggle: {fileID: 441283505} - defaultPath: /home/davp/Projects/Customers/Parking/Assets/Data/Tablica5.csv + defaultPath: --- !u!1 &1347097428 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/ParkingManager.cs b/Assets/Scripts/ParkingManager.cs index 0e0b256..38432c1 100644 --- a/Assets/Scripts/ParkingManager.cs +++ b/Assets/Scripts/ParkingManager.cs @@ -151,7 +151,8 @@ namespace Parking nextDrivers.Add(driver); } } - nextDrivers.Sort(((a, b) => Comparer.Default.Compare(a.PlannedDeparture, b.PlannedDeparture))); + // nextDrivers.Sort(((a, b) => Comparer.Default.Compare(a.PlannedDeparture, b.PlannedDeparture))); + nextDrivers.Sort(((a, b) => Comparer.Default.Compare(a.Priority, b.Priority))); //nextDrivers.Sort(((a, b) => Comparer.Default.Compare(a.RealDeparture, b.RealDeparture))); //nextDrivers.Sort(((a, b) => Comparer.Default.Compare(a.PlannedArrival, b.PlannedArrival)));