Game Development Reference
In-Depth Information
Stocking the shop
With all our scripts in place, let us return to the shop scene, start applying them, and fi-
nally get some stock displayed on the shelves.
So first, let's attach the following scripts:
• Attach the ShopManager script to the ShopScreen game object
• Attach the BuyButton script to the BuyButton game object
• Attach the ShopSlot script to each of the slots in the shop
Now, our shop is ready to receive its owner and some inventory items to stock. So, select
the ShopScreen game object; once you do this, you should see the following configura-
tion options in the Inspector pane:
Search WWH ::




Custom Search