private void SetTitleDetail(GUISelectPanelTitle listUI, GameWebAPI.RespDataMA_TitleMaster.TitleM[] titleData) { TitleListItem[] componentsInChildren = listUI.GetComponentsInChildren <TitleListItem>(true); if (componentsInChildren == null) { return; } GameWebAPI.RespDataTL_GetUserTitleList.UserTitleList equipedUserTitle = TitleDataMng.GetEquipedUserTitle(); int num = 0; for (int i = 0; i < componentsInChildren.Length; i++) { bool owned = null != TitleDataMng.GetUserTitleByMasterId(titleData[i].titleId); bool flag = equipedUserTitle != null && equipedUserTitle.titleId == titleData[i].titleId; componentsInChildren[i].SetDetail(titleData[i], owned, flag, new Action <TitleListItem>(this.OnSelectTitle)); if (flag) { num = i; } } componentsInChildren[num].OnSelectTitle(); }