24 lines
480 B
C#
24 lines
480 B
C#
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
|
|
public class ScoreboardManager : UdonSharpBehaviour
|
|
{
|
|
public Scoreboard[] scoreboards;
|
|
|
|
public void UpdateAllScoreboards()
|
|
{
|
|
if (scoreboards == null) return;
|
|
|
|
for (int i = 0; i < scoreboards.Length; i++)
|
|
{
|
|
Scoreboard board = scoreboards[i];
|
|
if (board != null)
|
|
{
|
|
board.UpdateScoreboard();
|
|
}
|
|
}
|
|
}
|
|
}
|