private void DestoryShouPai() { for (int i = 1; i < m_ShouPaiAnchors.Length; i++) { UnityUtility.DestroyAllChild(m_ShouPaiAnchors[i]); } }
private void DestroyAllChildren(IEnumerable <Transform> parents) { foreach (var p in parents) { //for (int i = p.childCount - 1; i >= 0; i--) //{ // GameObject.Destroy(p.GetChild(i).gameObject); //} UnityUtility.DestroyAllChild(p); } }