private WaveConfig CreateBigWave() { GameObject enemyPrefab = _bigEnemyPrefabs[Random.Range(0, _bigEnemyPrefabs.Count)]; GameObject pathPrefab = _paths[Random.Range(0, _paths.Count)]; float timeBetweenSpawns = Mathf.Clamp(Random.Range(_minTimeBetweenSpawns, _maxTimeBetweenSpawns), _minTimeBetweenSpawns, 1.5f); int numberOfEnemies = Random.Range(_minNumberOfEnemies, _maxNumberOfEnemies); float moveSpeed = _bigEnemySpeed + Random.Range(-_speedRandomness, _speedRandomness); return(WaveConfig.CreateWave(enemyPrefab, pathPrefab, timeBetweenSpawns, numberOfEnemies, moveSpeed)); }