using Godot;
namespace ColdMint.scripts.utils;
public class NodeUtils
{
///
/// Delete all child nodes
/// 删除所有子节点
///
///
public static void DeleteAllChild(Node parent)
{
var count = parent.GetChildCount();
if (count > 0)
{
for (int i = 0; i < count; i++)
{
var node = parent.GetChild(0);
node.QueueFree();
}
}
}
}