Make the respawn button gray if not at 1 score
This commit is contained in:
@@ -570,6 +570,7 @@ public class GamePlayer : MonoBehaviour
|
|||||||
PlayerPrefs.Save();
|
PlayerPrefs.Save();
|
||||||
scoreText.text = "Score: " + Tools.FormatWithCommas(score);
|
scoreText.text = "Score: " + Tools.FormatWithCommas(score);
|
||||||
highScoreText.text = "High Score: " + Tools.FormatWithCommas(highscore);
|
highScoreText.text = "High Score: " + Tools.FormatWithCommas(highscore);
|
||||||
|
if (restartButton != null) restartButton.GetComponent<Renderer>().material.color = score == 0 ? Color.gray : Color.white;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckIfGrounded()
|
void CheckIfGrounded()
|
||||||
|
|||||||
Reference in New Issue
Block a user