集合首页和详情页

This commit is contained in:
Caiyanpeng committed 2021-12-14 18:10:58 +08:00
1 parent 16b42a19e4
commit ec4a28cd2a
66 files changed
+10600 -818

No files matched your search

+1 -2
View File
@@ -290,14 +290,13 @@ namespace Assets.Scripts
}
}
/*删除父亲节点下的所有孩子*/
static public void DestroyChildren(this Transform t)
static public void DestroyChildren(this Transform t,string igNoreName = null)
{
bool isPlaying = Application.isPlaying;
while (t.childCount != 0)
{
Transform child = t.GetChild(0);
if (isPlaying)
{
child.SetParent(null);