Adding UI interaction for selling

As described at the beginning of the chapter, players will sell their monsters by going to a place and then initiating a sale by clicking on a button. The place or restaurant will then examine the player's monsters and offer a price for what it considers the best. A player can then accept the offer by clicking on a Yes button or refuse by clicking on a No button. Even with this very simple workflow, there are still a lot of elements we will need to put together, most of which will be UIs.

We will break down building the UI into sections so that it is easier to follow. The first part we will work on is adding the UI canvas and the primary buttons by performing the following directions:

  1. From the menu, select GameObject ...

Get Augmented Reality Game Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.