TO SQUASH: Comments.

This commit is contained in:
2026-08-05 01:48:24 -04:00
parent 475defbd6b
commit 1c00bebb40
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ public class HorizontalBar : MonoBehaviour
if (walls.Length > 0) if (walls.Length > 0)
{ {
// Cap the firing ability if the bar is already intersecting with a wall.
foreach (var wall in walls) foreach (var wall in walls)
{ {
if (wall.GetComponent<Collider2D>().bounds.Intersects(bounds)) if (wall.GetComponent<Collider2D>().bounds.Intersects(bounds))
+1
View File
@@ -26,6 +26,7 @@ public class VerticalBar : MonoBehaviour
if (walls.Length > 0) if (walls.Length > 0)
{ {
// Cap the firing ability if the bar is already intersecting with a wall.
foreach (var wall in walls) foreach (var wall in walls)
{ {
if (wall.GetComponent<Collider2D>().bounds.Intersects(bounds)) if (wall.GetComponent<Collider2D>().bounds.Intersects(bounds))