// Token: 0x060018E5 RID: 6373 RVA: 0x000777DC File Offset: 0x000759DC public static GameObject FindMasterPrefab([NotNull] string bodyName) { int num = MasterCatalog.FindMasterIndex(bodyName); if (num != -1) { return(MasterCatalog.GetMasterPrefab(num)); } return(null); }
private static void Init() { IEnumerable <GameObject> first = Resources.LoadAll <GameObject>("Prefabs/CharacterMasters/"); List <GameObject> list = new List <GameObject>(); Action <List <GameObject> > action = MasterCatalog.getAdditionalEntries; if (action != null) { action(list); } MasterCatalog.SetEntries(first.Concat(list.OrderBy((GameObject v) => v.name, StringComparer.Ordinal)).ToArray <GameObject>()); }