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))