public List<GameObject> zbArray;
public GameObject jhzb;
void Start()
{
if (jhzb != null)
{
foreach (GameObject child in jhzb.GetComponent<Transform>())
{
zbArray.Add(child);
}
}
麻烦指点一下,直接给源码