add all mechanics

This commit is contained in:
Sylvia 2026-07-13 17:46:02 -07:00
parent 87383d5b8c
commit 0e2a7cc7c3
434 changed files with 238349 additions and 2092 deletions

View file

@ -10,7 +10,7 @@ public class EndlessWaveManager : WaveManager
[SerializeField] private float exponentIncrease;
protected override void SpawnWave()
{
waveUI.text = $"Wave: {wave}";
//waveUI.text = $"Wave: {wave}";
int amountToSpawn = Mathf.FloorToInt(baseSpawnAmount * Mathf.Pow(wave, exponentIncrease));
for (int i = 0; i < amountToSpawn; i++)
{
@ -25,6 +25,9 @@ public class EndlessWaveManager : WaveManager
public override void UpdateKills()
{
if (enemiesInPlay.Count == 0)
{
SpawnWave();
}
}
}