Format commas in attempt account

This commit is contained in:
2025-07-01 22:52:34 -07:00
parent 1f14ea0ca9
commit b1e479472f

View File

@@ -666,8 +666,8 @@ public class GamePlayer : MonoBehaviour
PlayerPrefs.SetString("TotalSpeedyBerries", totalSpeedyBerries.ToString());
PlayerPrefs.SetString("TotalAttempts", totalAttempts.ToString());
PlayerPrefs.Save();
scoreText.text = $"Score: {Tools.FormatWithCommas(score)} \\u2022 Attempts: {attempts}";
highScoreText.text = $"High Score: {Tools.FormatWithCommas(highscore)} \\u2022 Total Attempts: {totalAttempts}";
scoreText.text = $"Score: {Tools.FormatWithCommas(score)} \\u2022 Attempts: {Tools.FormatWithCommas(attempts)}";
highScoreText.text = $"High Score: {Tools.FormatWithCommas(highscore)} \\u2022 Total Attempts: {Tools.FormatWithCommas(totalAttempts)}";
if (restartButton != null) restartButton.GetComponent<Renderer>().material.color = score == 0 ? Color.gray : Color.white;
}