Book Image

Learning Unity iOS Game Development

Book Image

Learning Unity iOS Game Development

Overview of this book

Table of Contents (14 chapters)
Learning Unity iOS Game Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
6
Main Menu, iAds, Leaderboards, Store Purchases, and Achievements
Index

Summary


Our SceneBackground is a tool that can take a lot of different types of sprites that can all have their own settings for movement purposes.

We also began working with Unity 5's UI system. This allows you to create a UI screen that will dynamically stay true to what we want, irrespective of the screen size or pixel density. We also created a pause button that will change the time scale of the game down to zero, which prevents the game elements from running. Finally, we created a restart button that can be hidden or shown to the user. It also fades out and fades in the screen when you reset the Character and LevelPieces back to default.

Finally, we used the PlayerPrefs class to save data to the local machine so that the user can keep their coin score, irrespective of whether they stop playing.

This chapter has done a lot of things that are a bit more technical than what we have done before. There has been a lot of code updates, fixes, changes, and brand new code as well. If you are new...