How do I make player interact with NPC
I'd already created a NPC and a player in the map and I want to make the NPC talk to the player whenever I clicked on the NPC. I'm new in code so I need to know the basic and the code that I need to learn to make it happen. Can someone give me some advises?
Comment
I'm not sure, but have a look at this:
http://answers.unity3d.com/questions/148397/talking-to-an-npc.html
it has some useful code and discussion. feel free to ask if you don't understand the code, I'll try to help.
It the code in the link you gave me can apply to 2d cause the game I'm making is a 2D game.
Your answer
![](https://koobas.hobune.stream/wayback/20220612114635im_/https://answers.unity.com/themes/thub/images/avi.jpg)