适用于获取某个对象下的子节点
以及路径节点的获取
public GameObject father_Object; //父节点对象
public GameObject chlid_Object; //单个子节点,用单个变量存储
public GameObject[] chlid_Objects; //多个子节点:用数组来储存
void start(){
//获取单个子节点
chlid_Object=father_Object.transform.Getchild(0).gameObject;
//获取多个子节点
chlid_Objects=new GameObject [father_Object.transform.childCount];
}
void update(){
for(int i=0;i<chlid_Objects.lenth;i++){
chlid_Objects[i]=transform.Getchild(i);
}
}