public void AddEffect(DspType effect) { var dsp = _system.CreateDspByType(effect); _effects.Add(dsp); EffectAdded?.Invoke(this, EventArgs.Empty); }
public void AddEffect(ItemEffect effect) { effects.Add(effect); effect.StartTime = stopwatch.ElapsedMilliseconds; if (EffectAdded != null) { EffectAdded.Invoke(effect); } }