Exemple #1
0
        private void StartWave(WaveModel wave)
        {
            Debug.Log("+++ Start enemy wave!");
            var waveLogic = new WaveLogic(wave, this);

            _workingWaves.Add(waveLogic);
        }
Exemple #2
0
        /// <summary>
        /// Завершить волну.
        /// </summary>
        /// <param name="wave">Завершаемая волна.</param>
        public void WaveFinished(WaveLogic wave)
        {
            if (_workingWaves.Contains(wave))
            {
                _workingWaves.Remove(wave);
            }
            else
            {
                Debug.LogWarning("Wave already was destroyed.");
            }

            ApplyNextWave();
        }