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

Chapter 6. Main Menu, iAds, Leaderboards, Store Purchases, and Achievements

In this chapter, we will go through the steps to get the final aspects of the iOS integration function and set up the main menu UI so that the player can navigate between playing the game, view leaderboards /achievements, and have the option to purchase "remove iAds" for the cost of ten thousand coins or 99 cents. We will also display iAds if the player has not purchased the remove iAds.

Similar to the last chapter, this one will have a fair bit of the tedious UI work. As it is difficult to explain the workflow, I will give you the exact locations and anchor points for the UI buttons and images. These locations are not definitive, meaning you can change them however you feel. Also, it won't affect the players experience with the UI because the logic for them is based in code. Feel free to take the liberty with the UI design if you are comfortable with it.

iAds, Leaderboards, and Achievements are all handled with the...