feat: add core quiz game logic, scoreboard, team machine, player management, and debug view with supporting assets and scene.
This commit is contained in:
22
Assets/Quiz/Scripts/Managers/ScoreboardManager.cs
Normal file
22
Assets/Quiz/Scripts/Managers/ScoreboardManager.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using UdonSharp;
|
||||
using UnityEngine;
|
||||
using VRC.SDKBase;
|
||||
using VRC.Udon;
|
||||
|
||||
public class ScoreboardManager : UdonSharpBehaviour
|
||||
{
|
||||
public Scoreboard[] scoreboards;
|
||||
|
||||
public void UpdateAllScoreboards()
|
||||
{
|
||||
if (scoreboards == null) return;
|
||||
|
||||
foreach (Scoreboard board in scoreboards)
|
||||
{
|
||||
if (board != null)
|
||||
{
|
||||
board.UpdateScoreboard();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user