© Casey Hardman  2020
C. HardmanGame Programming with Unity and C#https://doi.org/10.1007/978-1-4842-5656-5_29

29. Build Mode

Casey Hardman1 
(1)
West Palm Beach, FL, USA
 

In this chapter, we’ll implement the user interface that shows during “build mode” to allow the user to buy new towers and sell old towers. Before we begin, let’s outline the functionality we’re going to implement. From the player’s perspective, what will they be able to do in build mode? After this, we’ll do a quick primer of the important components and concepts behind Unity’s UI. We’ll then set up our own UI and learn how to make our buttons actually do something when we click them, implementing all of the build mode functionality bit by bit.

Our finished Build Mode UI is shown ...

Get Game Programming with Unity and C#: A Complete Beginner’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.