Upon completing the levels you will get around 10 gems that you can collect and when they reach 1000 gems you are allowed to unlock the game's most expensive hero named the hunter.
In addition to unlocking heroes, you can also use them anywhere in the game to buy and unlock in-game items for instant use.