TO SQUASH: Shark notifications.

This commit is contained in:
2026-08-27 22:05:44 -04:00
parent ba1a7ba281
commit dbed42424f
7 changed files with 85 additions and 60 deletions
+4 -1
View File
@@ -8,6 +8,8 @@ public class SharkSpawner : Spawner
public Player player;
public Canvas canvas;
private Bounds gameBoardBounds;
private float spawnTimer = 0f;
@@ -30,7 +32,7 @@ public class SharkSpawner : Spawner
{
spawnTimer += Time.fixedDeltaTime;
if (spawnTimer >= 1f && isActive && isSpawning && player.level >= 10)
if (spawnTimer >= 1f && isActive && isSpawning && player.level >= 1)
{
spawnTimer = 0f;
if (Random.value < spawnProbability)
@@ -39,6 +41,7 @@ public class SharkSpawner : Spawner
Shark sharkScript = shark.GetComponent<Shark>();
sharkScript.gameBoardSpriteRenderer = gameBoardSpriteRenderer;
sharkScript.player = player;
sharkScript.canvas = canvas;
isActive = false;
}
}