TO SQUASH: Lots of UI.

This commit is contained in:
2026-08-25 22:24:07 -04:00
parent 71bb746e8a
commit dad4d10207
129 changed files with 5151 additions and 60107 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
using UnityEngine;
public class SharkSpawner : MonoBehaviour
public class SharkSpawner : Spawner
{
public GameObject sharkPrefab;
@@ -14,7 +14,7 @@ public class SharkSpawner : MonoBehaviour
private bool isActive = true;
private static float spawnProbability = 0.1f;
private static float spawnProbability = 0.05f;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
@@ -28,7 +28,7 @@ public class SharkSpawner : MonoBehaviour
{
spawnTimer += Time.fixedDeltaTime;
if (spawnTimer >= 1f && isActive)
if (spawnTimer >= 1f && isActive && isSpawning)
{
spawnTimer = 0f;
if (Random.value < spawnProbability)