Universally challenged added
This commit is contained in:
@@ -12,14 +12,15 @@ public class ScoreboardRowSpawner : Scoreboard
|
||||
|
||||
public override void UpdateScoreboard()
|
||||
{
|
||||
foreach (Transform child in rowContainer)
|
||||
for (int i = rowContainer.childCount - 1; i >= 0; i--)
|
||||
{
|
||||
Destroy(child.gameObject);
|
||||
Destroy(rowContainer.GetChild(i).gameObject);
|
||||
}
|
||||
|
||||
VRCPlayerApi[] players = playerManager.GetCurrentPlayers();
|
||||
foreach (VRCPlayerApi player in players)
|
||||
for (int i = 0; i < players.Length; i++)
|
||||
{
|
||||
VRCPlayerApi player = players[i];
|
||||
GameObject newRow = Instantiate(rowPrefab, rowContainer);
|
||||
|
||||
TMPro.TMP_Text[] textComponents = newRow.GetComponentsInChildren<TMPro.TMP_Text>();
|
||||
|
||||
Reference in New Issue
Block a user