예제 #1
0
 void SetData(ChangeChannelController parent, string text)
 {
     m_parent       = parent;
     LabelText.text = text;
 }
예제 #2
0
    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);
    }