Merchants
Merchants allow your player to buy and sell items in the game.
In World Merchants#
To 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
Merchantcomponent. - Ensure your Game Object has a collider of some sort for the Interactor to see.
- Add a
Merchant Interactablecomponent to the Game Object.
In UI#
You 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
Merchantcomponent to it. - Select the Register option and give your merchant a key such as "PlayerMerchant"
- Add a
Merchant Windowto your player's UI and point it to the newly created and registered Merchant.