med-material / Whack_A_Mole_VR

Whack-A-Mole in VR
MIT License
3 stars 15 forks source link

GamePausedContainer / CountDownContainer: Add transitions #200

Open bastianilso opened 1 year ago

bastianilso commented 1 year ago

When we show count down messages or when we pause the game, a message box appears to the VR player. It would look nice if these message boxes use a brief opacity transition when they appear and disspear (not longer than max ~250ms).

lucasmnt commented 1 year ago

For this issue, i've been using the FadingHelper.cs class and FadingUtils.cs static class. You can see my progress below. Right know when you are launching a game, the countdown appears with a fading effect, and when you are pausing the game, the pausing UI appears with a fading effect aswell. Finally, when you click on "quit game", there's a short fading effect that plays.

You can see all transitions in the gif below :

Timer PauseTransitions