youvsvirus / youvsvirus-unity

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

One fail screen for all levels #100

Closed maccxs closed 4 years ago

maccxs commented 4 years ago

If the player hits the end of the level but fails for some reason, we should have the same fail screen for all levels. Then in this screen, the user can select to go back to main menu or press the retry button. The Retry calls LoadScene(scenearray[current-1]); so the previous scene. This is - of course - best possible when we have an array that manages the scenes. So very much dependent on issue #87

maccxs commented 4 years ago

I really like the transparent canvas idea that I introduced for levelgethome. If a base class handles the button script for the canvases, things like MainMenu, Retry, Continue (depending on arrray of levels) have to be handled only once and we do not clutter unity with screen_fail, screen_succ, etc.