From 33b65a2911b5362453bdd4567e14ae619c4fdd59 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 1 Feb 2026 10:32:03 +0800 Subject: assadasda --- Assets/Scripts/UI/UIBinding.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Assets/Scripts/UI') 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; } } } -- cgit