/// <summary> /// Remove an effect from this camera /// </summary> /// <param name="effect">The effect to remove</param> public void RemoveEffect(CameraEffect effect) { effect.End(); effects.Remove(effect); isTransformDirty = true; }
/// <summary> /// Immediately end a camera effect, regardless of its remaining duration /// </summary> /// <param name="effect">The effect to end</param> public void EndEffect(CameraEffect effect) { effect.End(); RemoveEffect(effect); isTransformDirty = true; }