diff --git a/Assets/Scripts/Sensors/GroundTruth2DSensor.cs b/Assets/Scripts/Sensors/GroundTruth2DSensor.cs index aba2f90f5..8082a77c0 100644 --- a/Assets/Scripts/Sensors/GroundTruth2DSensor.cs +++ b/Assets/Scripts/Sensors/GroundTruth2DSensor.cs @@ -134,10 +134,10 @@ private void Update() Sequence = seqId++, Data = Detected.Values.ToArray(), }); - - Visualized = Detected.Values.ToArray(); - Detected.Clear(); } + + Visualized = Detected.Values.ToArray(); + Detected.Clear(); } Vector4 CalculateDetectedRect(Vector3 cen, Vector3 ext, Quaternion rotation) diff --git a/Assets/Scripts/Sensors/GroundTruth3DSensor.cs b/Assets/Scripts/Sensors/GroundTruth3DSensor.cs index ca3e29818..50bfbea5f 100644 --- a/Assets/Scripts/Sensors/GroundTruth3DSensor.cs +++ b/Assets/Scripts/Sensors/GroundTruth3DSensor.cs @@ -67,10 +67,10 @@ void Update() Sequence = seqId++, Data = Detected.Values.ToArray(), }); - - Visualized = Detected.Keys.ToArray(); - Detected.Clear(); } + + Visualized = Detected.Keys.ToArray(); + Detected.Clear(); } public override void OnBridgeSetup(IBridge bridge)