Posted April 25, 2021 by sitara
GitHub: https://github.com/nebulousmango/When-Yema-Unspooled
Document references:
Each scene uses the same set of UI and audio elements: text and buttons for UI, and background sounds and button SFX for audio.
The buttons have two functions when clicked, one to load a new scene and the other to play a page flip sound effect.
Loading new scenes is handled by a ButtonManager script, and the names of the scenes are added in the inspector. StartMenu in the S_Level Three slot is the same for all scenes and is used by the artefact button that takes you back to the main menu.
One scene uses a FrogManager script and another uses a LizardManager script. Both scripts change a bool value to true when they're run, and the EndingManager loads different scenes at the end of the story depending on which bools are true.