Can't get score counter

In lecture 119 I can’t get the score counter to work. I have checked and rebuild every script but it still doesn’t work.

The counter stays at zero.

Any help?



There’s not really enough info here for people to be able to help out. Could you take a screenshot of your ScoreKeeper and EnemyContact scripts? A screenshot of the hierarchy would also be useful. :slight_smile:

I was having a problem getting the “score” to show up in the inspector and thus no score was being tracked at all. For some reason my Unity just stop updating my scripts as well as loading other scenes.

Try saving your scenes and scripts, close them and then restart your Unity. Hopefully this will be all that’s wrong. Otherwise, try to copy and paste your script and I’ll see if I see anything wrong…

Privacy & Terms