private void ResetList() { Debug.Log("Resetting waves array"); waves.Clear(); WavesDifficulty zeroDif = wavesDifficulty[0]; for (int i = 0; i < zeroDif.waves.Length; i++) { waves.Add(zeroDif.waves[i]); } nextDifficulty = 1; }
void RaiseDifficulty(int _difficulty) { if (wavesDifficulty.Length <= _difficulty) { return; } WavesDifficulty newDif = wavesDifficulty[_difficulty]; for (int i = 0; i < newDif.waves.Length; i++) { waves.Add(newDif.waves[i]); } nextDifficulty++; }