Esempio n. 1
0
 void Start()
 {
     scoreDisplay         = gameOverScreen.transform.Find("ScoreTMP").GetComponent <TextMeshProUGUI>();
     comboDisplay         = gameOverScreen.transform.Find("ComboTMP").GetComponent <TextMeshProUGUI>();
     accuracyDisplay      = gameOverScreen.transform.Find("AccuracyTMP").GetComponent <TextMeshProUGUI>();
     wpmDisplay           = gameOverScreen.transform.Find("WpmTMP").GetComponent <TextMeshProUGUI>();
     scoreDisplay.text    = SCORE_TEXT + statManager.GetScore().ToString();
     comboDisplay.text    = COMBO_TEXT + statManager.GetCombo().ToString();
     accuracyDisplay.text = ACCURACY_TEXT + statManager.GetAccuracy().ToString();
     wpmDisplay.text      = WPM_TEXT + statManager.GetWpm().ToString();
 }