med-material / Whack_A_Mole_VR

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

Updating fade-in and fade-out effects for Therapist and Patient screens #204

Closed lucasmnt closed 1 year ago

lucasmnt commented 1 year ago

Creating a Fade-in / Fade-out effect for patient's and therapist's screens to awnser an issue due to a high difference of brightness between Unity starting logo and the actual game. For a smoother experience, the fade-in effect start with grey color (matching Unity starting logo), goes to black, then fades from black to normal.

LevelFaderScreen.cs has been removed and replaced by two differents scripts : LevelFaderPatientScreen.cs and LevelFaderTherapistScreen.cs

LevelFaderPatientScreen.cs has been added as a component to Camera game object ([camera rig]'s child).

LevelFaderTherapistScreen.c has been added as a component to [camera rig] game object. This script also disables the therapist UI while the fade-in/fade-out effects is running.