您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
32 行
821 B
32 行
821 B
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
// Bindings to the scoreboard you can bring up with TAB.
|
|
|
|
[System.Serializable]
|
|
public class ScoreboardUIBinding
|
|
{
|
|
public Image[] headers;
|
|
public ScoreboardTeamUIBinding[] teams;
|
|
|
|
internal void Clear()
|
|
{
|
|
foreach (var team in teams)
|
|
{
|
|
team.name.text = "";
|
|
team.score.text = "";
|
|
team.playerScores.Clear();
|
|
team.playerScoreTemplate.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class ScoreboardTeamUIBinding
|
|
{
|
|
public TMPro.TextMeshProUGUI name;
|
|
public TMPro.TextMeshProUGUI score;
|
|
public TMPro.TextMeshProUGUI playerScoreTemplate;
|
|
public List<TMPro.TextMeshProUGUI> playerScores = new List<TMPro.TextMeshProUGUI>();
|
|
}
|