private WaveEvent CreateRandomWaveEvent() { WaveEvent newWaveEvent = new WaveEvent(_waveRoundNumber); int counter = UnityEngine.Random.Range(0, Game.Instance.spawnPoints.Length); newWaveEvent._spawnPoint = Game.Instance.spawnPoints[counter]; return(newWaveEvent); }
private void HandleWave() { if (_eventCounter < _wave.Events.Length) { _actualEvent = _wave.Events.ElementAt(_eventCounter); StartCoroutine("HandleEvent"); _eventCounter++; } }