protected CellContainer AddEmptyCell(string name)
        {
            GameObject    emptyTitleGO = transform.CreateChildGameObject(name);
            CellContainer emptyCell    = emptyTitleGO.AddComponent <CellContainer>();

            emptyCell.Initialize();
            return(emptyCell);
        }
        void CreateAddButton()
        {
            addButtonCellContainer = GameObjectUtils.InstantiatePrefab(table.addButtonCellContainerPrefab, transform);
            addButtonCellContainer.Initialize();
            ButtonCell cell = (ButtonCell)addButtonCellContainer.CreateCellContent(table.addCellPrefab);

            cell.Initialize();
        }
Exemple #3
0
        protected override CellContainer CreateCell(int rowIndex)
        {
            CellContainer cellContainer = GameObjectUtils.InstantiatePrefab(table.emptyCellContainerPrefab, transform);

            cellContainer.Initialize(rowIndex);
            cellContainers.Add(cellContainer);
            ButtonCell cell = (ButtonCell)cellContainer.CreateCellContent(info.CellPrefab);

            cell.Initialize();
            return(cellContainer);
        }
 protected virtual void CreateTitleCell()
 {
     titleButtonCellContainer = GameObjectUtils.InstantiatePrefab(table.columnTitlePrefab, transform);
     titleButtonCellContainer.transform.SetSiblingIndex(0);
     titleButtonCellContainer.Initialize();
 }