using UnityEngine; using System.Collections; /* *获得当前物件下的所有子物体 */ public class PlayerCC : MonoBehaviour { public static Transform[] gb; private void Awake() { gb = new Transform[transform.childCount]; for(int i=0; i<gb.Length; i++) { gb[i] = transform.GetChild(i); } } }