예제 #1
0
 static public void SetChildren <T>(this Component item, IEnumerable <T> children) where T : Component
 {
     item.DestroyChildren();
     item.AddChildren(children);
 }
예제 #2
0
 static public void SetChildren(this Component item, IEnumerable <GameObject> children)
 {
     item.DestroyChildren();
     item.AddChildren(children);
 }