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:
![](https://static.packt-cdn.com/products/9781839217616/graphics/assets/aeee4442-893b-4f8a-b4c6-e67eee22bff2.png)
Figure 13.8 – Our higher-or-lower game, with the score being remembered between scenes