/// <summary> /// Add an effect to this object. /// </summary> /// <param name="Target">Effect.</param> public void AddEffect(IEffect Target, int Priority = 0) { if (Effects.Contains(Target)) { return; } foreach (IMixableComponent Elem in Channels.Values) { Elem.AddEffect(Target, Priority); } Effects.Add(Target); }