//Will be called by the TableView when a cell needs to be created for display public TableViewCell GetCellForRowInTableView(TableView tableView, int row) { VisibleCounterCell cell = tableView.GetReusableCell(m_cellPrefab.reuseIdentifier) as VisibleCounterCell; if (cell == null) { cell = (VisibleCounterCell)GameObject.Instantiate(m_cellPrefab); cell.name = "VisibleCounterCellInstance_" + (++m_numInstancesCreated).ToString(); } cell.SetRowNumber(row); return(cell); }
// Token: 0x060044F5 RID: 17653 RVA: 0x00171044 File Offset: 0x0016F444 public TableViewCell GetCellForRowInTableView(TableView tableView, int row) { VisibleCounterCell visibleCounterCell = tableView.GetReusableCell(this.m_cellPrefab.reuseIdentifier) as VisibleCounterCell; if (visibleCounterCell == null) { visibleCounterCell = UnityEngine.Object.Instantiate <VisibleCounterCell>(this.m_cellPrefab); UnityEngine.Object @object = visibleCounterCell; string str = "VisibleCounterCellInstance_"; int num = ++this.m_numInstancesCreated; @object.name = str + num.ToString(); } visibleCounterCell.SetRowNumber(row); return(visibleCounterCell); }
//Will be called by the TableView when a cell needs to be created for display public TableViewCell GetCellForRowInTableView(TableView tableView, int row) { VisibleCounterCell cell = tableView.GetReusableCell(m_cellPrefab.reuseIdentifier) as VisibleCounterCell; if (cell == null) { cell = (VisibleCounterCell)GameObject.Instantiate(m_cellPrefab); cell.name = "VisibleCounterCellInstance_" + (++m_numInstancesCreated).ToString(); //bind cell's click event cell.onClick = OnCellClick; } //refresh cell info cell.SetRowNumber(row); cell.SetText(m_data[row]); return(cell); }