예제 #1
0
 /// <summary>
 /// Remove a SceneNodeDefinition from the children.
 /// </summary>
 /// <param name="child">The child to remove.</param>
 public void removeChildNode(SceneNodeDefinition child)
 {
     childNodes.Remove(child.Name);
     child.setParentNode(null);
     if (editInterface != null)
     {
         editInterface.removeSubInterface(child);
     }
 }
예제 #2
0
 /// <summary>
 /// Add a SceneNodeDefinition as a child node.
 /// </summary>
 /// <param name="child">The child to add.</param>
 public void addChildNode(SceneNodeDefinition child)
 {
     childNodes.Add(child.Name, child);
     child.setParentNode(this);
     if (editInterface != null)
     {
         addChildNodeEdit(child);
     }
 }