TO SQUASH: Fixed issue with collisions with destroyed balls.

This commit is contained in:
2026-08-04 02:07:47 -04:00
parent 8ddf7a648f
commit da1512731b
+3
View File
@@ -135,8 +135,11 @@ public class BallSpawner : MonoBehaviour
// As an exception, glass balls will collide with other glass balls.
foreach (var ball in balls)
{
if (ball == null) continue;
foreach (var otherBall in balls)
{
if (otherBall == null) continue;
if (ball == otherBall) continue;
bool ballIsBasicOrFruit = ball.CompareTag("BasicBall") || ball.CompareTag("FruitBall");