Beispiel #1
0
        static void Traverse(PFPart root, List <MeshFilter> filters)
        {
            var filter = root.GetComponent <MeshFilter>();

            if (filter != null)
            {
                filters.Add(filter);
            }

            root.children.ForEach(child => {
                Traverse(child.part, filters);
            });
        }
 public PFSegment(PFPart p, float r)
 {
     part  = p;
     ratio = r;
 }
 public void Add(PFPart part, float ratio)
 {
     children.Add(new PFSegment(part, ratio));
 }