Пример #1
0
 public void SetSceneElement(SceneElement sceneElement)
 {
     if (sceneElement is Sphere) {
         SetSphere((Sphere)sceneElement);
     }
 }
 public void SetSceneElement(SceneElement sceneElement)
 {
     if (sceneElement is PerspectiveCamera) {
         SetCamera((PerspectiveCamera)sceneElement);
     }
 }
 public void SetSceneElement(SceneElement sceneElement)
 {
     if (sceneElement is OrthographicCamera) {
         SetCamera((OrthographicCamera)sceneElement);
     }
 }
Пример #4
0
 public SceneElementNode(SceneElement sceneElement)
     : base(sceneElement.Name)
 {
     this.sceneElement = sceneElement;
 }
Пример #5
0
 private void OnNameUpdated(SceneElement sceneElement)
 {
     NotifySceneElementNameUpdated(sceneElement);
 }
Пример #6
0
 private void NotifySceneElementNameUpdated(SceneElement sceneElement)
 {
     if (sceneElementNameUpdated != null) {
         sceneElementNameUpdated.Invoke(this, sceneElement);
     }
 }
Пример #7
0
 public void SetSceneElement(SceneElement sceneElement)
 {
     if (sceneElement is Cylinder) {
         SetCylinder((Cylinder)sceneElement);
     }
 }