TO SQUASH: Fixed issues.

This commit is contained in:
2026-08-27 17:14:18 -04:00
parent 414ebc99ff
commit 5ea4a7f74b
7 changed files with 133 additions and 21 deletions
+3 -10
View File
@@ -6,6 +6,8 @@ public class CakeSpawner : Spawner
public SpriteRenderer gameBoardSpriteRenderer;
public WorldFiller worldFiller;
private Bounds cakeBounds;
private Bounds gameBoardBounds;
@@ -66,15 +68,6 @@ public class CakeSpawner : Spawner
{
spawned = false;
spawnTimer = 0f;
spawnPosition = new Vector2(
Random.Range(
gameBoardBounds.min.x + cakeBounds.extents.x,
gameBoardBounds.max.x - cakeBounds.extents.x
),
Random.Range(
gameBoardBounds.min.y + cakeBounds.extents.y,
gameBoardBounds.max.y - cakeBounds.extents.y
)
);
spawnPosition = worldFiller.GetRandomPositionInFreeAreas(cakeBounds);
}
}