Exemplo n.º 1
0
 /// Destroy all active children of that transform
 ///
 public static void DestroyChildren(this Transform transform)
 {
     if (transform != null)
     {
         foreach (var child in transform.ActiveChildren())
         {
             GameObject.Destroy(child.gameObject);
         }
     }
 }