// 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); }
// 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); }
// Token: 0x06000A80 RID: 2688 RVA: 0x0002DE84 File Offset: 0x0002C084 public static EntityStateMachine FindByCustomName(GameObject gameObject, string customName) { List <EntityStateMachine> gameObjectComponents = GetComponentsCache <EntityStateMachine> .GetGameObjectComponents(gameObject); EntityStateMachine result = null; int i = 0; int count = gameObjectComponents.Count; while (i < count) { if (string.CompareOrdinal(customName, gameObjectComponents[i].customName) == 0) { result = gameObjectComponents[i]; } i++; } GetComponentsCache <EntityStateMachine> .ReturnBuffer(gameObjectComponents); return(result); }