Make the respawn button gray if not at 1 score

This commit is contained in:
2025-06-08 19:15:31 -07:00
parent cf7952cce1
commit f93d18deb0

View File

@@ -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<Renderer>().material.color = score == 0 ? Color.gray : Color.white;
}
void CheckIfGrounded()