Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
 /// <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;
 }
Beispiel #3
0
 /// <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;
 }