Esempio n. 1
0
 private void DisplayLastScore()
 {
     if (PlayerPrefsController.GetBestScore() > 0)
     {
         gameObject.GetComponent <TextMeshProUGUI>().text = PlayerPrefsController.GetLastScore().ToString();
     }
     else
     {
         gameObject.GetComponent <TextMeshProUGUI>().text = 0.ToString();
     }
 }