Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void HandleWave()
 {
     if (_eventCounter < _wave.Events.Length)
     {
         _actualEvent = _wave.Events.ElementAt(_eventCounter);
         StartCoroutine("HandleEvent");
         _eventCounter++;
     }
 }