public void OnFinish(IEffect effect) { Debug.Assert(effect.Duration <= 0); effect.OnFinish(); GetAllEffects(false).Remove(effect.EnumId); }