Let's create a simple script to update the text field of this score as shown in the following screenshot:
The following script will update the text field in the upper-right corner of the screen so that it reflects the score stored in PlayerData:
Player, and then store a reference to the
PlayerDatacomponent on this script.
scorescript needs to update a member of the
score, so the update loop that this script ...