public TableCell CellForIdx(int idx) { LeaderboardTableCell _tableCell = Instantiate(_songListTableCellInstance); _tableCell.playerName = $"{(SteamAPI.GetHostId() == Data[idx].playerId ? "[HOST] ": "")}{Data[idx].playerName}"; _tableCell.score = (int)Data[idx].playerScore; _tableCell.rank = idx + 1; _tableCell.specialScore = Data[idx].playerId == Controllers.PlayerController.Instance._playerInfo.playerId; _tableCell.showFullCombo = Data[idx].playerCutBlocks == Data[idx].playerTotalBlocks && Data[idx].playerTotalBlocks > 0; if (Data[idx].SongFailed) { TextMeshProUGUI score = _tableCell.GetPrivateField <TextMeshProUGUI>("_scoreText"); score.text = "FAILED"; score.color = new Color(255, 0, 0, 1); } if (SteamAPI.GetHostId() == Data[idx].playerId) { _tableCell.GetPrivateField <TextMeshProUGUI>("_playerNameText").color = new Color(0, 255, 0, 1); } _tableCell.reuseIdentifier = "CustomListCell"; return(_tableCell); }