private void StartWave(WaveModel wave) { Debug.Log("+++ Start enemy wave!"); var waveLogic = new WaveLogic(wave, this); _workingWaves.Add(waveLogic); }
/// <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(); }