I hope i fixed first wave spawn

This commit is contained in:
BOT Alex 2024-02-04 00:26:32 +01:00
parent d78cb670c2
commit 52b8a8ccff
1 changed files with 1 additions and 0 deletions

View File

@ -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();