浏览代码

added identifiers for example program for debug

Ronen 8 年之前
父节点
当前提交
9b9c040b03
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      MonoGameSceneGraph/Game1.cs

+ 6 - 0
MonoGameSceneGraph/Game1.cs

@@ -64,6 +64,12 @@ namespace MonoGameSceneGraph
             nodeContainerContainer.AddChildNode(nodeContainer);
             nodeContainer.AddChildNode(node);
 
+            // for debug
+            root.Identifier = "root";
+            nodeContainerContainer.Identifier = "ncc";
+            nodeContainer.Identifier = "nc";
+            node.Identifier = "n";
+
             // create entity and attach to bottom node
             entity = new ModelEntity(Content.Load<Model>("robot"));
             node.AddEntity(entity);