From f93d18deb0cee29f5a93607aef79bb9754d895a8 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 8 Jun 2025 19:15:31 -0700 Subject: [PATCH] Make the respawn button gray if not at 1 score --- Assets/Scripts/GamePlayer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Scripts/GamePlayer.cs b/Assets/Scripts/GamePlayer.cs index 6526164..9241409 100644 --- a/Assets/Scripts/GamePlayer.cs +++ b/Assets/Scripts/GamePlayer.cs @@ -570,6 +570,7 @@ public class GamePlayer : MonoBehaviour PlayerPrefs.Save(); scoreText.text = "Score: " + Tools.FormatWithCommas(score); highScoreText.text = "High Score: " + Tools.FormatWithCommas(highscore); + if (restartButton != null) restartButton.GetComponent().material.color = score == 0 ? Color.gray : Color.white; } void CheckIfGrounded()