O'Reilly logo

Building an RPG with Unity 5.x by Vahé Karamian

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

Chapter 5 was mostly code. We enhanced the GameMaster Class to handle the game settings and scene management. We began the chapter by making the GameMaster handle the user interface, the player character data, and the game settings, which currently is just the volume for the background music.

We added a new UI element that displays the settings panel for the game. At the moment, it only contains the main volume control. Next, we added the necessary code in the UIController class and the GameMaster class to handle the display of the settings window and also the slider value passed from the UI component to the UIController to the GameMaster class.

We also made the GameMaster class into a singleton. A singleton in software engineering is a ...

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