private void CreateTitleList(GUISelectPanelTitle listUI, int listItemCount) { GUICollider component = listUI.GetComponent <GUICollider>(); BoxCollider component2 = component.GetComponent <BoxCollider>(); Vector3 localPosition = component.transform.localPosition; component.SetOriginalPos(this.titleListOriginalItem.transform.localPosition); component.transform.localPosition = localPosition; Rect listWindowViewRect = new Rect { xMin = component2.size.x * -0.5f, xMax = component2.size.x * 0.5f, yMin = component2.size.y * -0.5f - 40f, yMax = component2.size.y * 0.5f }; listWindowViewRect.yMin = listWindowViewRect.y - GUIMain.VerticalSpaceSize; listWindowViewRect.yMax = listWindowViewRect.y + listWindowViewRect.height + GUIMain.VerticalSpaceSize; listUI.ListWindowViewRect = listWindowViewRect; listUI.selectParts = this.titleListOriginalItem; listUI.initLocation = true; listUI.AllBuild(listItemCount); }