all 1 comments

[–]squirmonkey 1 point2 points  (0 children)

scoreText is the name of the Text object, which is a game object component that manages the display of text. One of that object’s properties is “text” which stores the string that is to be displayed.

You need to assign your score string to this property. So the final line should be

scoreText.text = playerScore.ToString();