Beispiel #1
0
 /// <summary>
 /// removes a SceneComponent from the SceneComponents list
 /// </summary>
 public void RemoveSceneComponent(SceneComponent component)
 {
     Insist.IsTrue(_sceneComponents.Contains(component), "SceneComponent {0} is not in the SceneComponents list!", component);
     _sceneComponents.Remove(component);
     component.OnRemovedFromScene();
 }
Beispiel #2
0
 /// <summary>
 /// removes a SceneComponent from the SceneComponents list
 /// </summary>
 public void removeSceneComponent(SceneComponent component)
 {
     Assert.isTrue(_sceneComponents.contains(component), "SceneComponent {0} is not in the SceneComponents list!", component);
     _sceneComponents.remove(component);
     component.onRemovedFromScene();
 }