void StopEffect(EffectInstance efx) { if (efx.effect.settings.decayTime <= 0.0f) { RemoveEffect(efx, wasDestroyed: false); return; } if (efx.decayTimeLeft == null) { efx.decayTimeLeft = efx.effect.settings.decayTime; efx.Decay(); } }