public override void OnSettingChanged(uint settingId, SettingValue value) { switch ((SettingId)settingId) { case SettingId.BeginColorValue: _particleEmitters.ForEach(emitter => emitter.BeginColor = value); break; case SettingId.EmissionRateValue: _particleEmitters.ForEach(emitter => emitter.EmissionRate = value); break; case SettingId.ParticleSpeedValue: _particleEmitters.ForEach(emitter => emitter.Speed = value.ToSingle()); break; case SettingId.ParticleLifeValue: _particleEmitters.ForEach(emitter => emitter.Life = value.ToSingle()); break; case SettingId.ParticleBeginSizeValue: _particleEmitters.ForEach(emitter => emitter.BeginSize = value.ToSingle()); break; case SettingId.ParticleEndSizeValue: _particleEmitters.ForEach(emitter => emitter.EndSize = value.ToSingle()); break; } }