ScoreBoard not working, and causing error

Hello @Nina,

While working on the course (Aragon Assault), hitting play button after all the code was written, i have noticed that the ScoreBoard UI does not changes to 0 and also whne the bullets collide with the enemy i get this error and the enemy does not dissapear:

Clicking on the error gets me to this part of the code:


EDIT: After more research, i have noticed that the ScoreBoard.cs was not attached to the text, and for some reason the enemy fx prefab was disappearing from the enemies.
Sorry if i bothered, maybe someone else encounters this isse as me.
Have a great day !:slight_smile:

1 Like

I’m glad you solved the issue yourself. :slight_smile:

NullReferenceException means that a reference (“link”) to an instance is missing. In this case, you need to check the reference type variables: all variables that are not a number, not a bool and not a char.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms