private void FillData(int i_SlotIndex, string i_PlayerName, Sprite i_Portrait, Color i_TeamColor, string i_StatLabel, string i_StatValue, string i_ParticipationLabel, string i_ParticipationValue) { if (!IsValidSlotIndex(i_SlotIndex)) { return; } if (m_StatsPanels == null) { return; } tnStatsPanel statsPanel = m_StatsPanels[i_SlotIndex]; if (statsPanel == null) { return; } statsPanel.gameObject.SetActive(true); statsPanel.SetPlayerName(i_PlayerName); statsPanel.SetPortrait(i_Portrait); statsPanel.SetTeamColor(i_TeamColor); statsPanel.SetStatLabel(i_StatLabel); statsPanel.SetStatValue(i_StatValue); statsPanel.SetPartecipationLabel(i_ParticipationLabel); statsPanel.SetPartecipationValue(i_ParticipationValue); }
// INTERNALS private void Internal_SetEntry(int i_Index, string i_PlayerName, Sprite i_Portrait, string i_StatLabel, string i_StatValue, string i_PartecipationLabel, string i_PartecipationValue, Color i_TeamColor) { tnStatsPanel entry = GetEntry(i_Index); if (entry == null) { return; } entry.gameObject.SetActive(true); entry.SetPlayerName(i_PlayerName); entry.SetPortrait(i_Portrait); entry.SetStatLabel(i_StatLabel); entry.SetStatValue(i_StatValue); entry.SetPartecipationLabel(i_PartecipationLabel); entry.SetPartecipationValue(i_PartecipationValue); entry.SetTeamColor(i_TeamColor); }