Exemple #1
0
		/// <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);
		}
Exemple #2
0
		/// <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);
		}