private void FixedUpdate() { if (aiController.AllEnemiesKilled()) { aiController.StartWave(.1f, currentSpawnAmount); NewSpawnAmount(); } }