/// <summary> /// Removes a actor from the rendering list. /// </summary> /// <param name="actor"> A <see cref="Renderable"/>. </param> public void RemoveActor(Actor actor) { if (!_actors.Contains(actor)) throw new Exception("The actor is not a part of this scene's rendering list."); _actors.Remove(actor); }
/// <summary> /// Adds a actor to the rendering list. /// </summary> /// <param name="actor"> A <see cref="Renderable"/>. </param> public void AddActor(Actor actor) { if (!_actors.Contains(actor)) _actors.Add(actor); }