TO SQUASH: Comments.
This commit is contained in:
@@ -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<Collider2D>().bounds.Intersects(bounds))
|
||||
|
||||
Reference in New Issue
Block a user