diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-01 10:32:03 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-01 10:32:03 +0800 |
| commit | 33b65a2911b5362453bdd4567e14ae619c4fdd59 (patch) | |
| tree | f2fd9b5b19b2d106aa8999c51cb1dea2ffbbc249 /Assets/Scripts/UI/UIBinding.cs | |
| parent | d051482ec70191a403ce82b935ad5c75ed0731f8 (diff) | |
assadasda
Diffstat (limited to 'Assets/Scripts/UI/UIBinding.cs')
| -rw-r--r-- | Assets/Scripts/UI/UIBinding.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Assets/Scripts/UI/UIBinding.cs b/Assets/Scripts/UI/UIBinding.cs index b84f307..9830b03 100644 --- a/Assets/Scripts/UI/UIBinding.cs +++ b/Assets/Scripts/UI/UIBinding.cs @@ -12,6 +12,9 @@ namespace UI [Range(0, 1)] public float player2ScorePercent; public TMP_Text timeText; + public TMP_Text player1ScoreText; + public TMP_Text player2ScoreText; + public TMP_Text questionText; public Image player1ScoreDisplay; public Image player2ScoreDisplay; @@ -29,6 +32,13 @@ namespace UI // 更新进度条 player1ScoreDisplay.fillAmount = targetPlayer1Amount; player2ScoreDisplay.fillAmount = targetPlayer2Amount; + + // 更新玩家分数显示 + player1ScoreText.text = progress.player1Score.ToString(); + player2ScoreText.text = progress.player2Score.ToString(); + + // 更新问题显示 + questionText.text = progress.questionPlayer.currentQuestion.QuestionText; } } } |
