Ejemplo n.º 1
0
 /// <summary>
 /// Executes the custom action on the graph nodes.
 /// </summary>
 /// <param name="node">The node</param>
 /// <param name="callback">The callback.</param>
 public static void ExecuteOnGraph(this SceneGraphNode node, GraphExecuteCallbackDelegate callback)
 {
     for (int i = 0; i < node.ChildNodes.Count; i++)
     {
         if (callback(node.ChildNodes[i]))
         {
             ExecuteOnGraph(node.ChildNodes[i], callback);
         }
     }
 }