Book Image

Unity Game Development Scripting

By : Kyle D'Aoust
Book Image

Unity Game Development Scripting

By: Kyle D'Aoust

Overview of this book

Table of Contents (17 chapters)
Unity Game Development Scripting
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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.