/// <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; }
/// <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> /// Add an effect to this camera /// </summary> /// <param name="effect">The CameraEffect to add</param> public void AddEffect(CameraEffect effect) { effects.Add(effect); isTransformDirty = true; }