The variable death fx of the enemy is not assigned

Hi,
I’m getting this message when my bullets hit the enemy ship.




And my score is increasing randomly but not by fifteen which assigned. So please help me with this issue.

Hi,

NullReferenceException means that a reference (“link”) to an instance is missing. Double click on the error message to see to which line in your code it is referring. If you exposed a field in the Inspector, make sure that it’s not empty. The error messages indicate, that there is something wrong with deathFX, so it could make sense to take a look at the variable in the Inspector. Maybe it does not reference any prefab.

image

Did this help? :slight_smile:


See also:

Thank you , My problem is solved.

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

Privacy & Terms