Projects in Unity can be structured as collections of scenes, and scenes can be thought of as the different screens that are displayed while the game runs.
Upon launching, a game generally starts with a so-called main screen or home screen. This screen displays the relevant options to interact with the game. There is usually a Play button to launch the game, a button to edit game options such as audio and graphics, another button to launch a multiplayer session, and so on.
In this example, the home screen will be a scene in the Unity project, and each stage of the actual game will be a scene of its own, such as the Game Won and Game Lost screens. The following diagram shows the screen flow of our prototype:
Scenes and their contents are loaded when required at runtime through scripting. When a scene is loaded, all the game objects and components that were saved in that scene when creating the game are loaded as well.
On the other hand, when the scene is unloaded, all game objects...