broken
This commit is contained in:
@@ -5,15 +5,11 @@ using Object = UnityEngine.Object;
|
||||
namespace RebootKit.Engine.Extensions {
|
||||
public static class TransformEx {
|
||||
public static void DestroyChildren(this Transform transform) {
|
||||
foreach (Transform child in transform) {
|
||||
Object.Destroy(child);
|
||||
}
|
||||
foreach (Transform child in transform) Object.Destroy(child);
|
||||
}
|
||||
|
||||
public static void ForEachChild(this Transform transform, Action<Transform> action) {
|
||||
foreach (Transform child in transform) {
|
||||
action(child);
|
||||
}
|
||||
foreach (Transform child in transform) action(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user