I’m stuck, the game runs but will not update the score and comes up with this:
NullReferenceException: Object reference not set to an instance of an object
ScoreKeeper.Reset () (at Assets/Scripts/ScoreKeeper.cs:25)
ScoreKeeper.Start () (at Assets/Scripts/ScoreKeeper.cs:13)
I tried moving it across however it still doesn’t update the score.
I also checked the code and mytext was supposed to be set as a private variable not a public one, it’s my mistake that it was there to begin with, Brice manages to get it working as a private variable just fine.
I managed to sort it. I had assigned an older script to the enemyprefab that wasn’t getting updated, so when I changed the script, nothing happened. After changing the script it works fine.