How To Create Puzzles For Adventure Games

How do you make a puzzle in unity?

.

How do you write an adventure game?