Skip to content

Score Board Controller

Displays information about the linked Game Instance Controller through UnityEngine.UI.Text labels. On Start, the component registers itself with the configured controller so status / score updates are written directly into the referenced UI text components.

GameInstanceController. The controller that drives this scoreboard. The scoreboard appends itself to ScoreBoardControllers on Start.

List<Text>. Text components displaying the current round timer (mm:ss formatted).

List<Text>. Text components displaying the round status. The text is the string from GameInstanceController.GameStates:

  • 0waiting for players
  • 5ready up
  • 7Round starting
  • 10game in progress

List<ScoreBoardDisplayElementsTeam>. Elements in the same order as the team index on the Game Instance Controller. Each entry has:

  • playerListsList<Text> showing the team’s player roster. Each name is prefixed with [R] when ready or [_] when not, and names are joined by newlines.
  • teamScoreList<Text> showing the team’s current score.

CVR-GameFiles/ABI.CCK.Components/ScoreBoardController.cs, CVR-GameFiles/ABI.CCK.Components/ScoreBoardDisplayElementsTeam.cs