Score and Lives Persist after Game Completion

I’m having an issue with my the UI sticking around after I play the game to completion. If my character dies the UI goes away but only if that happens. I’ve tried everything I can think of to get rid of the UI but nothing is working. Any help would be appreciated.

Hi,

If you won/lost the game, you will either have to destroy the persistent game object which contains the current values for score and lives. Or you could reset the values to their default values with a new method. This way, you could keep using the same game object.


See also:

1 Like

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

Privacy & Terms