Ejemplo n.º 1
0
        void AddChildNodes(TreeSnapshot tree)
        {
            _allNodes[tree._root] = tree._root;
            _allNodeNames[tree._root.gameObject.name] = tree._root.gameObject.name;

            foreach (TreeSnapshot child in tree._children.Values)
            {
                AddChildNodes(child);
            }
        }
Ejemplo n.º 2
0
        private string Print(string tab, TreeSnapshot root)
        {
            string skeleton = string.Format("{0} {1}\n", tab, root.Name);
            string newTab   = tab + "\t";

            foreach (TreeSnapshot child in root._children.Values)
            {
                skeleton += Print(newTab, child);
            }

            return(skeleton);
        }