I hope i fixed first wave spawn
This commit is contained in:
parent
d78cb670c2
commit
52b8a8ccff
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue