How to make shops?

Hello I’m having a hard time trying to figure out logic/code for making shops in my 3D platformer. There is a coin currency, but my coins (although that can be collected) do not have any functions outside of collecting them.

What is the solution commonly used for NPC shops?

I can’t figure out how to do shops! I’m thinking an NPC that shoots out a prefab from a list depending on how many coins you have when you select something?

Well, I have found tutorials about shops and money and coins, so maybe you’ll find them helpful.

Please consult the rest of the playlist if the content is not enough, most points are covered in the first hundred videos.

You’ll want parts 95 to 99, which concern making a shop, and part 8, which concerns basic money.

Playlist: Unity 3D Tutorial Series - YouTube

Money: Unity 3D Tutorial Part 8: Basic Money - YouTube

Shop: Unity 3D Tutorial Part 95: Making A Shop - The GUI - YouTube

I hope that he helps you. I didn’t make these.