med-material / Whack_A_Mole_VR

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

Updating fade-in / fade-out for patient screen, Creating fade-in / fade-out for therapist screen #205

Closed lucasmnt closed 1 year ago

lucasmnt commented 1 year ago

To make the user experience smoother, the fade in effect starts with grey color (matching Unity starting logo), goes to black color, then fades out from black to normal

The LevelFaderScreen.cs script has been removed and replaced by two different scripts : LevelFaderTherapistScreen.cs and LevelFaderPatientScreen.cs

LevelFaderTherapistScreen.cs enables the fade-in / fade-out effect for the therapist screen and is used as a component for [camera rig] game object

LevelFaderPatientScreen.cs enables the fade-in / fade-out effect for the patient screen and is used as a component for [camera rig]'s child object camera. This script also disables the therapist UI while the effect is still running, then when it is finished, enables the UI again.