Esempio n. 1
0
    public void Setup(IListViewItemModel model)
    {
        var itemModel = (ListViewItemModel)model;

        gameObject.name = itemModel.Data.ToString();
        itemText.text   = ((int)(itemModel.Data)).ToString();
    }
 /// <summary>
 /// This method will be returning IListViewItem with
 /// respect to given model.
 /// </summary>
 /// <returns>Matched IListViewItem</returns>
 public IListViewItem GetItem(IListViewItemModel itemModel)
 {
     return(modelToItem[itemModel]);
 }