Пример #1
0
        // Token: 0x0600163A RID: 5690 RVA: 0x0005F908 File Offset: 0x0005DB08
        public static List <T> GetGameObjectComponentsInChildren(GameObject gameObject, bool includeInactive = false)
        {
            List <T> list = GetComponentsCache <T> .RequestBuffer();

            gameObject.GetComponentsInChildren <T>(includeInactive, list);
            return(list);
        }
Пример #2
0
        // Token: 0x06001639 RID: 5689 RVA: 0x0005F8EC File Offset: 0x0005DAEC
        public static List <T> GetGameObjectComponents(GameObject gameObject)
        {
            List <T> list = GetComponentsCache <T> .RequestBuffer();

            gameObject.GetComponents <T>(list);
            return(list);
        }