IEnumerator NewSection(WaveSection waveSection) { foreach (GameObject g in waveSection.enemyPrefabs) { AddEnemy(g); yield return(new WaitForSeconds(waveSection.timeBewteenEnemies)); } }
public void Clear() { if (waveFrame == null) { return; } waveFrame.Clear(); Graphics g = WaveSection.CreateGraphics(); g.Clear(Color.Black); g.Dispose(); }