Now that we have the shop menu up and working, let's add in the functionality to purchase things:
ShopMenuback on and delete all of the other buttons except for one which will be our reference for others.
We will want each button to have three texts—the name of the object, the number we have, and the cost to build another.
Descand change the Text component's Alignment to the left horizontally, then duplicate it (
Ctrl+D) name the duplicate
Costand center it. Finally, duplicate once more and change the name to
Qtyand put it on the right. Fill in the values if you'd like, but we'll be replacing the contents via code shortly: