From 1c00bebb4088f1bcaed8a14d428be1f4aeec03ae Mon Sep 17 00:00:00 2001 From: Miguel Astor Date: Wed, 5 Aug 2026 01:48:24 -0400 Subject: [PATCH] TO SQUASH: Comments. --- Assets/Scripts/Game/HorizontalBar.cs | 1 + Assets/Scripts/Game/VerticalBar.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Assets/Scripts/Game/HorizontalBar.cs b/Assets/Scripts/Game/HorizontalBar.cs index 11a57e4..3d8afa7 100644 --- a/Assets/Scripts/Game/HorizontalBar.cs +++ b/Assets/Scripts/Game/HorizontalBar.cs @@ -26,6 +26,7 @@ public class HorizontalBar : MonoBehaviour if (walls.Length > 0) { + // Cap the firing ability if the bar is already intersecting with a wall. foreach (var wall in walls) { if (wall.GetComponent().bounds.Intersects(bounds)) diff --git a/Assets/Scripts/Game/VerticalBar.cs b/Assets/Scripts/Game/VerticalBar.cs index 009b880..31b554c 100644 --- a/Assets/Scripts/Game/VerticalBar.cs +++ b/Assets/Scripts/Game/VerticalBar.cs @@ -26,6 +26,7 @@ public class VerticalBar : MonoBehaviour if (walls.Length > 0) { + // Cap the firing ability if the bar is already intersecting with a wall. foreach (var wall in walls) { if (wall.GetComponent().bounds.Intersects(bounds))