From 7d814e3b3c2d065005e4edc3386ad1711d0bf33d Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Tue, 2 Sep 2025 18:21:24 -0700 Subject: [PATCH] Make high score text highlighted --- Assets/Scripts/GamePlayer.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/GamePlayer.cs b/Assets/Scripts/GamePlayer.cs index d010f82..9144a0c 100644 --- a/Assets/Scripts/GamePlayer.cs +++ b/Assets/Scripts/GamePlayer.cs @@ -581,12 +581,16 @@ public class GamePlayer : MonoBehaviour void UpdateStats(BigInteger scoreAddAmount, BigInteger attemptAddAmount) { + var prefix = ""; + var suffix = ""; score += scoreAddAmount; totalAttempts += attemptAddAmount; attempts += attemptAddAmount; - if (score > highscore) + if (score >= highscore) { highscore = score; + prefix = ""; + suffix = ""; } BazookaManager.Instance.SetGameStoreHighScore(highscore); BazookaManager.Instance.SetGameStoreTotalNormalBerries(totalNormalBerries); @@ -600,7 +604,7 @@ public class GamePlayer : MonoBehaviour customBirdIconData.Balance = totalCoins; BazookaManager.Instance.SetCustomBirdIconData(customBirdIconData); scoreText.text = $"Score: {Tools.FormatWithCommas(score)} \\u2022 Attempts: {Tools.FormatWithCommas(attempts)}"; - highScoreText.text = $"High Score: {Tools.FormatWithCommas(highscore)} \\u2022 Total Attempts: {Tools.FormatWithCommas(totalAttempts)}"; + highScoreText.text = prefix + $"High Score: {Tools.FormatWithCommas(highscore) + suffix} \\u2022 Total Attempts: {Tools.FormatWithCommas(totalAttempts)}"; coinText.text = $"Coins: {Tools.FormatWithCommas(totalCoins)}"; if (Application.isMobilePlatform) restartButton.interactable = score != 0; }