node 的destroy方法不会把node的parent置为null???

node 的destroy方法不会把node的parent置为null???

想写个
while(node.childrenCount > 0){
node.children[0].destroy()
}
发现死循环了。。

先获取数量,再循环

forEach不香吗?

destroy是异步