Merchants
Merchants allow your player to buy and sell items in the game.
#
In World MerchantsTo intact with a Merchant in your game (perhaps an NPC or a Vending Machine), you only need to perform a couple of steps.
- Select your Game Object and add a
Merchant
component. - Ensure your Game Object has a collider of some sort for the Interactor to see.
- Add a
Merchant Interactable
component to the Game Object.
#
In UIYou can have a merchat available in your UI for the player to use at any point with only a couple of steps.
- Create a Game Object and add a
Merchant
component to it. - Select the Register option and give your merchant a key such as "PlayerMerchant"
- Add a
Merchant Window
to your player's UI and point it to the newly created and registered Merchant.