From 52b8a8ccff124dd348d0b0942c72bbb987549143 Mon Sep 17 00:00:00 2001 From: BOT Alex <44818698+MagicBOTAlex@users.noreply.github.com> Date: Sun, 4 Feb 2024 00:26:32 +0100 Subject: [PATCH] I hope i fixed first wave spawn --- Assets/Scripts/Controller/EnemySpawner/EnemySpawner.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Scripts/Controller/EnemySpawner/EnemySpawner.cs b/Assets/Scripts/Controller/EnemySpawner/EnemySpawner.cs index 28421cd..0d88a5c 100644 --- a/Assets/Scripts/Controller/EnemySpawner/EnemySpawner.cs +++ b/Assets/Scripts/Controller/EnemySpawner/EnemySpawner.cs @@ -101,6 +101,7 @@ public class EnemySpawner : MonoBehaviour void SpawnRandom(float difficulty) { + difficulty *= 1.1f; while (difficulty > 1f) // Spawn until difficulty is less than 0.5f { var validEnemies = enemyList.Where(x => x.Difficulty <= difficulty).ToArray();