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
+16
View File
@@ -13,4 +13,20 @@ public abstract class Spawner : MonoBehaviour
{
isSpawning = true;
}
protected Vector2 GetRandomSpawnPosition(Bounds bounds)
{
var spawnPosition = new Vector2(
Random.Range(
bounds.min.x + bounds.extents.x,
bounds.max.x - bounds.extents.x
),
Random.Range(
bounds.min.y + bounds.extents.y,
bounds.max.y - bounds.extents.y
)
);
return spawnPosition;
}
}