feat: Add quiz scene with scoreboard, team machine, door, and player management systems.
This commit is contained in:
18
Assets/Quiz/Scripts/Scoreboards/ScoreboardRow.cs
Normal file
18
Assets/Quiz/Scripts/Scoreboards/ScoreboardRow.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user