或者关闭按钮点击事件
//关闭排行榜面板,清空子物体
private void OnCloseButtonClick()
{
transform.DOScale(Vector3.zero,0.3f);
//关闭排行榜面板,清空子物体
for (int i = 0; i < m_Parent.childCount; i++)
{
Destroy(m_Parent.GetChild(i).gameObject);
}
}