Example #1
0
 static public void SetChildrenAtSelf <T>(this Component item, IEnumerable <T> children) where T : Component
 {
     item.DestroyChildren();
     item.AddChildrenAtSelf(children);
 }
Example #2
0
 static public void SetChildrenAtSelf(this Component item, IEnumerable <GameObject> children)
 {
     item.DestroyChildren();
     item.AddChildrenAtSelf(children);
 }