public void SetData(ResultsData data)
 {
     RankText.text       = data.Rank.ToString();
     PlayerNameText.text = data.PlayerName;
     KillsText.text      = data.Kills.ToString();
     DeathsText.text     = data.Deaths.ToString();
     KDText.text         = data.KillDeathRatio.ToString("N2");
 }
        private void AddPlayerToTable(ResultsData data, bool isLocalPlayer)
        {
            var entry = (ResultsTableEntry)resultsTable.AddEntry();

            entry.SetData(data);
            entry.SetAllTextVisuals(isLocalPlayer ? localPlayerTextColor : defaultTextColor, isLocalPlayer);
            entry.Background.color = isLocalPlayer ? localPlayerBackgroundColor : currentBgColor;
        }