Add a variable to track the score in the Player script

Next we need a function to update our score

Now we can:

We can decide what happens to increase the score

For this demo, we will increase the score with each coin collected.