Exemplo n.º 1
0
    public override void SetCellContent(UICell cell, int row)
    {
        ResourceCell resourceCell = cell.GetComponent <ResourceCell>();

        if (resourceCell != null)
        {
            resourceCell.SetContent(resources[row]);
        }
    }
Exemplo n.º 2
0
    public override void SetCellContent(UICell cell, int row)
    {
        PlantCell plantCell = cell.GetComponent <PlantCell>();

        if (plantCell != null)
        {
            plantCell.rowNumber = row;
            plantCell.SetContent(puts[row]);
        }
    }