全ての子供を最下層まで見てリストを作成する関数メモ


    

public List<GameObject> FindCilds(Transform obj)

{
     List<GameObject> list = new List<GameObject>();
     List.Add(obj.GameObject);
     foreach(Transform child in obj)

     {

          list.AddRenge(FindChild(child)) ;
     }
     return list;
}