Beispiel #1
0
        private void createItemRenderersUsingData()
        {
            itemRenderers = new List <GridItemRenderer>(data.Count);

            for (int i = 0; i < data.Count; i++)
            {
                GridItemRenderer item = instantiateItemRenderer();
                item.index = i;
                item.setData(data[i]);
                item.setObjectToShow(data[i].objectToShow);
                item.showData();
                item.OnDataChange += onRendererDataChange;
                itemRenderers.Add(item);
            }
        }
 protected void foo(GridItemRenderer target)
 {
 }