From 2c239b85540ca930140669826ebfc1c1f3ac30ae Mon Sep 17 00:00:00 2001 From: Puvikaran Santhirasegaram <74664443+Puvikaran2001@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:46:41 +0100 Subject: [PATCH] Fix bug in Patrolling Visualizer --- .../Patrolling/Patrolling_Simulation.prefab | 139 +++++++++--------- 1 file changed, 73 insertions(+), 66 deletions(-) diff --git a/Assets/Prefabs/Patrolling/Patrolling_Simulation.prefab b/Assets/Prefabs/Patrolling/Patrolling_Simulation.prefab index 04bbb0ba..fc3af213 100644 --- a/Assets/Prefabs/Patrolling/Patrolling_Simulation.prefab +++ b/Assets/Prefabs/Patrolling/Patrolling_Simulation.prefab @@ -61,8 +61,8 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: + - {fileID: 7755201498048166789} - {fileID: 2368756380866914999} - - {fileID: 5596846004080017637} - {fileID: 115284797368542119} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -81,8 +81,8 @@ MonoBehaviour: MapGenerator: {fileID: 5448115849239720796, guid: ea6575536da9c457a830bcab17c6b4cc, type: 3} RobotSpawner: {fileID: 8140582489471995686} Robots: [] - patrollingVisualizer: {fileID: 2357735628227746645, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} ---- !u!1001 &8097070573020329166 + patrollingVisualizer: {fileID: 3457845904110228597} +--- !u!1001 &1100251085320982304 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 @@ -90,86 +90,72 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 8097070572256205115} m_Modifications: - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} - propertyPath: m_RootOrder - value: 0 + - target: {fileID: 1960162275254437419, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} + propertyPath: m_Name + value: PatrollingVisualizer objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalPosition.x - value: 0 + value: -50 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalPosition.y - value: 0 + value: -50 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalRotation.x - value: -0 + value: 0 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalRotation.y - value: -0 + value: 0 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalRotation.z - value: -0 + value: 0 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + - target: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 5800937216522198651, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} - propertyPath: m_Name - value: RobotSpawner - objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] - m_AddedComponents: - - targetCorrespondingSourceObject: {fileID: 5800937216522198651, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} - insertIndex: -1 - addedObject: {fileID: 8140582489471995686} - m_SourcePrefab: {fileID: 100100000, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} ---- !u!1 &2368756380866914997 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 5800937216522198651, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} - m_PrefabInstance: {fileID: 8097070573020329166} - m_PrefabAsset: {fileID: 0} ---- !u!114 &8140582489471995686 + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} +--- !u!114 &3457845904110228597 stripped MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 2357735628227746645, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} + m_PrefabInstance: {fileID: 1100251085320982304} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2368756380866914997} + m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1a102275a0d04f22b0ec40e3c347ce62, type: 3} + m_Script: {fileID: 11500000, guid: c36df2aba7ae2ec02873e8d570781ff7, type: 3} m_Name: m_EditorClassIdentifier: - robotPrefab: {fileID: 9210634985821422333, guid: 4790ce40d20cf0b43b5540e9c36aa8fb, type: 3} ---- !u!4 &2368756380866914999 stripped +--- !u!4 &7755201498048166789 stripped Transform: - m_CorrespondingSourceObject: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} - m_PrefabInstance: {fileID: 8097070573020329166} + m_CorrespondingSourceObject: {fileID: 7270184343081284773, guid: 3f5094782a2dd5f75ac097a06cdfae12, type: 3} + m_PrefabInstance: {fileID: 1100251085320982304} m_PrefabAsset: {fileID: 0} ---- !u!1001 &8097070573896362588 +--- !u!1001 &8097070573020329166 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 @@ -177,61 +163,82 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 8097070572256205115} m_Modifications: - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_RootOrder - value: 2 + value: 0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalPosition.z - value: -0.01 + value: 0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 4464596655183588030, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} + - target: {fileID: 5800937216522198651, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} propertyPath: m_Name - value: ExplorationVisualizer + value: RobotSpawner objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} ---- !u!4 &5596846004080017637 stripped + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 5800937216522198651, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + insertIndex: -1 + addedObject: {fileID: 8140582489471995686} + m_SourcePrefab: {fileID: 100100000, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} +--- !u!1 &2368756380866914997 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 5800937216522198651, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + m_PrefabInstance: {fileID: 8097070573020329166} + m_PrefabAsset: {fileID: 0} +--- !u!114 &8140582489471995686 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2368756380866914997} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1a102275a0d04f22b0ec40e3c347ce62, type: 3} + m_Name: + m_EditorClassIdentifier: + robotPrefab: {fileID: 9210634985821422333, guid: 4790ce40d20cf0b43b5540e9c36aa8fb, type: 3} +--- !u!4 &2368756380866914999 stripped Transform: - m_CorrespondingSourceObject: {fileID: 4464596655183588025, guid: a006b6f7b30c0c0b1a80ae7aec4b065f, type: 3} - m_PrefabInstance: {fileID: 8097070573896362588} + m_CorrespondingSourceObject: {fileID: 5800937216522198649, guid: 8d7bf0b2f8218b35cb432d27de8c6c64, type: 3} + m_PrefabInstance: {fileID: 8097070573020329166} m_PrefabAsset: {fileID: 0}