Fixed reconfiguration of reserved spots

This commit is contained in:
Dawid Pietrykowski 2022-10-27 23:45:00 +02:00
parent a9f6948b5c
commit 8f8635efb8
4 changed files with 16 additions and 16 deletions

View File

@ -2932,7 +2932,7 @@ MonoBehaviour:
mainPlanContainer: {fileID: 557435656} mainPlanContainer: {fileID: 557435656}
emergencyPlanContainer: {fileID: 632826360} emergencyPlanContainer: {fileID: 632826360}
reconfigurationToggle: {fileID: 441283505} reconfigurationToggle: {fileID: 441283505}
defaultPath: defaultPath: /home/dawp/Projects/Commisions/Parking/Assets/Data/Tablica2.csv
--- !u!1 &1347097428 --- !u!1 &1347097428
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -591,7 +591,7 @@ namespace Parking
foreach (List<Spot> currentLaneSpots in _spotMap) foreach (List<Spot> currentLaneSpots in _spotMap)
for (int i = 0; i < currentLaneSpots.Count; i++) { for (int i = 0; i < currentLaneSpots.Count; i++) {
Spot spot = currentLaneSpots[i]; Spot spot = currentLaneSpots[i];
if (!spot.Free || spot.Size == Size.D)// || spot.Reserved) if (!spot.Free || spot.Size == Size.D || spot.Reserved)
continue; continue;
if (GetSpotCountOfSize(Size.A) <= 2 && spot.Size == Size.A) if (GetSpotCountOfSize(Size.A) <= 2 && spot.Size == Size.A)
continue; continue;

View File

@ -1,11 +1,11 @@
{ {
"dependencies": { "dependencies": {
"com.unity.2d.animation": { "com.unity.2d.animation": {
"version": "7.0.6", "version": "7.0.8",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.common": "6.0.3", "com.unity.2d.common": "6.0.5",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.modules.animation": "1.0.0", "com.unity.modules.animation": "1.0.0",
"com.unity.modules.uielements": "1.0.0" "com.unity.modules.uielements": "1.0.0"
@ -13,7 +13,7 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.common": { "com.unity.2d.common": {
"version": "6.0.3", "version": "6.0.5",
"depth": 2, "depth": 2,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
@ -39,12 +39,12 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.psdimporter": { "com.unity.2d.psdimporter": {
"version": "6.0.4", "version": "6.0.6",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.animation": "7.0.6", "com.unity.2d.animation": "7.0.8",
"com.unity.2d.common": "6.0.3", "com.unity.2d.common": "6.0.5",
"com.unity.2d.sprite": "1.0.0" "com.unity.2d.sprite": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
@ -56,12 +56,12 @@
"dependencies": {} "dependencies": {}
}, },
"com.unity.2d.spriteshape": { "com.unity.2d.spriteshape": {
"version": "7.0.5", "version": "7.0.6",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.mathematics": "1.1.0", "com.unity.mathematics": "1.1.0",
"com.unity.2d.common": "6.0.3", "com.unity.2d.common": "6.0.4",
"com.unity.2d.path": "5.0.2", "com.unity.2d.path": "5.0.2",
"com.unity.modules.physics2d": "1.0.0" "com.unity.modules.physics2d": "1.0.0"
}, },
@ -115,11 +115,11 @@
"depth": 0, "depth": 0,
"source": "builtin", "source": "builtin",
"dependencies": { "dependencies": {
"com.unity.2d.animation": "7.0.6", "com.unity.2d.animation": "7.0.8",
"com.unity.2d.pixel-perfect": "5.0.1", "com.unity.2d.pixel-perfect": "5.0.1",
"com.unity.2d.psdimporter": "6.0.4", "com.unity.2d.psdimporter": "6.0.6",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.2d.spriteshape": "7.0.5", "com.unity.2d.spriteshape": "7.0.6",
"com.unity.2d.tilemap": "1.0.0", "com.unity.2d.tilemap": "1.0.0",
"com.unity.2d.tilemap.extras": "2.2.3" "com.unity.2d.tilemap.extras": "2.2.3"
} }
@ -164,7 +164,7 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.services.core": { "com.unity.services.core": {
"version": "1.4.2", "version": "1.4.3",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {

View File

@ -1,2 +1,2 @@
m_EditorVersion: 2021.3.9f1 m_EditorVersion: 2021.3.12f1
m_EditorVersionWithRevision: 2021.3.9f1 (ad3870b89536) m_EditorVersionWithRevision: 2021.3.12f1 (8af3c3e441b1)