TO SQUASH: Nuke ball fixes.

This commit is contained in:
2026-08-28 17:44:31 -04:00
parent 7e4b5a2055
commit 716e35c615
10 changed files with 153 additions and 15 deletions
@@ -20,6 +20,8 @@ public class BallSpawner : Spawner
public Player player;
public WorldFiller worldFiller;
private static WaitForSeconds _waitForSeconds0_5 = new WaitForSeconds(0.5f);
private Queue<System.Action> ballQueue = new Queue<System.Action>();
@@ -35,6 +37,7 @@ public class BallSpawner : Spawner
ballQueue.Enqueue(() => SpawnBall(basicBallPrefab));
ballQueue.Enqueue(() => SpawnBall(basicBallPrefab));
ballQueue.Enqueue(() => SpawnBall(nuclearBallPrefab));
basicBallCount = 2;
StartCoroutine(SpawnBalls());
@@ -195,6 +198,14 @@ public class BallSpawner : Spawner
oozeBallScript.spawner = this;
}
}
else if (ballPrefab == nuclearBallPrefab)
{
var nuclearBallScript = newBall.GetComponent<NukeBall>();
if (nuclearBallScript != null)
{
nuclearBallScript.worldFiller = worldFiller;
}
}
balls.Enqueue(newBall);