Beispiel #1
0
        private static void SetChildrenTransform(List <MyTransformTriplet> childrenTransform)
        {
            var childrenList = UtilsGameObject.GetChildren(childrenTransform.Count);

            for (int i = 0; i < childrenList.Count; i++)
            {
                childrenTransform[i].SetTransformTo(childrenList[i].transform);
            }
        }
Beispiel #2
0
 public static List <MyTransformTriplet> MakeParentChildTransformations(MyTransformTriplet parent, List <MyTransformTriplet> children)
 {
     parent.SetTransformTo(UtilsGameObject.SigletonObject.transform);
     SetChildrenTransform(children);
     return(UtilsGameObject.GetChildren(children.Count).Select(c => MyTransformTriplet.FromGlobalTransform(c.transform)).ToList());
 }