/*--------------------------------------------------------------------------------------------*/ private HoverboardItem BuildItem(HoverboardLayout pLayout, string pLabel, int pWidth) { var itemObj = new GameObject(pLabel); itemObj.transform.SetParent(pLayout.gameObject.transform, false); var item = itemObj.AddComponent <HoverboardItem>(); item.Type = HoverboardItem.HoverboardItemType.Selector; item.Label = pLabel; item.Width = pWidth; vItems.Add(item); return(item); }
/*--------------------------------------------------------------------------------------------*/ private HoverboardItem BuildItem(HoverboardLayout pLayout, string pLabel, int pWidth) { var itemObj = new GameObject(pLabel); itemObj.transform.SetParent(pLayout.gameObject.transform, false); var item = itemObj.AddComponent<HoverboardItem>(); item.Type = HoverboardItem.HoverboardItemType.Selector; item.Label = pLabel; item.Width = pWidth; vItems.Add(item); return item; }