19 lines
471 B
C#
19 lines
471 B
C#
using TMPro;
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ScoreboardRow : UdonSharpBehaviour
|
|
{
|
|
public TMP_Text nameText;
|
|
public TMP_Text scoreText;
|
|
public Image backgroundImage;
|
|
|
|
public void SetData(string name, string score, Color color)
|
|
{
|
|
if (nameText != null) nameText.text = name;
|
|
if (scoreText != null) scoreText.text = score;
|
|
if (backgroundImage != null) backgroundImage.color = color;
|
|
}
|
|
}
|