void SetData(ChangeChannelController parent, string text) { m_parent = parent; LabelText.text = text; }
public static ChannelListItem CreateItem(GameObject grid, GameObject resItem, string name, ChangeChannelController parent, string text) { GameObject curItem = Utils.BindObjToParent(resItem, grid, name); if (null != curItem) { ChannelListItem curItemComponent = curItem.GetComponent <ChannelListItem>(); if (null != curItemComponent) { curItemComponent.SetData(parent, text); } return(curItemComponent); } return(null); }