youvsvirus / youvsvirus-unity

Unity version of the you vs virus game.
GNU General Public License v3.0
1 stars 1 forks source link

Sliders do nothing after restart #33

Closed holke closed 4 years ago

holke commented 4 years ago

When we use the "Neustart" Button from the End Screen, the sliders do not change the game behaviour anymore :( Even if we do not keep the Neustart feature in the final version it would be very useful for debugging though.

maccxs commented 4 years ago

@holke If I press the start button things change after neustart

ghost commented 4 years ago

@holke Although I can't reproduce the bug, I have an idea about the origin of the problem: Check out my review on the endscreen PR. The reason should be the duplicate creation of the LevelSettings game object, but the singleton getter I implemented in LevelSettings.cs should already solve this issue...

Still, I'm fixing the duplicate creation, just to be sure.

holke commented 4 years ago

Yes your Fix for the duplication also seems to resolve this bug.