出错的位置 transform应该为小写
你的Transform需要new一个实例,然后再调用函数。Transform tf=new Transform();tf.GetChild(i);
Transform 应该小写吧?