While the previous recipe illustrates how the static properties allow a game to remember values between different scenes, these values are forgotten once the game application is exited. Unity provides the PlayerPrefs feature to allow a game to store and retrieve data between the different game-playing sessions:

Figure 13.8 – Our higher-or-lower game, with the score being remembered between scenes