Exemplo n.º 1
0
 private void OnWaveEndedEvent(SpawnData spawnData)
 {
     curWave++;
     if (curWave < waves.Length)
     {
         spawnSystem.StartWave(waves[curWave]);
         audioSource.PlayOneShot(nextWaveSFX, 1f);
     }
     else
     {
         if (winEvent != null)
         {
             winEvent();
         }
     }
 }