Exemplo n.º 1
0
 public void UpdateWinnerCardInfo(Player player, StandingsData standingsData)
 {
     PlayerName.text    = player.Name;
     Score.text         = standingsData.Points.ToString("0");
     Background.color   = new Color(player.PrimaryColor.r, player.PrimaryColor.g, player.PrimaryColor.b, 0.2f);
     PrimaryColor.color = player.PrimaryColor;
 }
Exemplo n.º 2
0
    public void UpdateCardInfo(Player player, StandingsData standingsData)
    {
        PlayerName.text = player.Name;
        Score.text      = standingsData.Points.ToString("0");

        if (standingsData.TrackRecord)
        {
            ScoreAdded.text = "TR";
        }
        else
        {
            ScoreAdded.text = "";
        }

        Background.color   = new Color(player.PrimaryColor.r, player.PrimaryColor.g, player.PrimaryColor.b, 0.2f);
        PrimaryColor.color = player.PrimaryColor;
    }