示例#1
0
文件: ModelBone.cs 项目: q4a/Flummery
        protected void GetChildren(ModelBone parent, ref ModelBoneCollection list)
        {
            foreach (ModelBone child in parent.Children)
            {
                list.Add(child);

                child.GetChildren(child, ref list);
            }
        }
示例#2
0
文件: ModelBone.cs 项目: q4a/Flummery
        public ModelBoneCollection AllChildren(bool includeSelf = true)
        {
            ModelBoneCollection childs = new ModelBoneCollection();

            if (includeSelf)
            {
                childs.Add(this);
            }
            GetChildren(this, ref childs);

            return(childs);
        }