更新时间:2021-07-02 22:28:08
封面
版权信息
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Building Your Game
Chapter overview
Your objectives
Setting up the project
Creating the player
Improving our scripts with attributes and XML comments
Using attributes
The Tooltip attribute
The Range attribute
The RequireComponent attribute
XML comments
Putting it all together
Having the camera following our player
Creating a basic tile
Making it endless
Creating obstacles
Summary
Setup for Android and iOS Development
Our objectives
Introduction to build settings
Building a project for PC
Installing the Java Development Kit (JDK)
Installing the Android SDK
Exporting a project for Android
Putting the project on your Android device
Unity for iOS setup and Xcode installation
Building a project for iOS
Mobile Input/Touch Controls
Using mouse input
Moving via touch
Implementing a gesture
Using the accelerometer
Detecting touch on game objects
Resolution Independent UI
The chapter overview
Creating a title screen
The Rect Transform component
Anchors
Pivots
Selecting different aspect ratios
Working with buttons
Adding a pause menu
Pausing the game
Advertising Using Unity Ads
Unity Ads setup
Displaying a simple Ad
Utilizing ad callback options
Opt-in advertisements with rewards
Adding in a cooldown
Implementing In-App Purchases
Setting up Unity IAP
Creating our first purchase
Adding button to restore purchases
Configuring purchases for the stores of your choice
Getting Social
Adding a score system
Sharing high scores via Twitter
Downloading and installing Facebook's SDK
Logging in to our game via Facebook
Displaying Facebook name and profile pic
Using Unity Analytics
Setting up analytics
Tracking custom events
Using the AnalyticsTracker component