예제 #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);
            }
        }
예제 #2
0
 protected void foo(GridItemRenderer target)
 {
 }