O'Reilly logo

Unity Game Development Scripting by Kyle D'Aoust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, you learned how to track stats, save them, and show them in a GUI menu. To track the stats, we created interactive functions to modify them. During the creation of the stat saving script, you learned about what PlayerPref function are and how to use them. You also learned how to keep track of achievements and show them on a GUI menu as well.

In the next chapter, you will learn how to add the save game functionality to your game. To save the game data, we will create two methods, allowing the player to save the game anytime they want and allowing the game to use checkpoint saving. We will also save using XML files as well as text files.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required