Chapter 9
Handling Persistent Data
CMOD is looking good now, and we could improve it even further by adding more levels and environments, such as rooftop levels, basements levels, and even exterior levels. If we did that, however, it’d be useful for gamers to be able to save their games so that the next time they played, they could resume from where they left off, preventing them from repeating their actions every time. In other words, if we’re to expand the game, it’d be helpful for the gamer to have save-game functionality. Achieving this effectively means we’ll need to store game data persistently on the local computer, between playing sessions, so that even between powering the computer off and on, the save-game data persists to be restored. ...
Get Pro Unity Game Development with C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.