public void SpawnWave()
{
Wave wave = this.DequeueWave();
if (wave != null)
{
objectManager.AudioManager.PlayWaveSound(wave.waveId);
this.objectManager.gameState.waveCount++;
this.StartCoroutine(this.CreateEnemies(wave, this.enemySpawnNodes));
if (SendWave != null)
{
SendWave();
}
}
}
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Space)) { manager.SpawnWave(1); } }