It looks like you're new here. If you want to get involved, click one of these buttons!
Hello, today I tried to make a healing potion for my first game. I've made 2 methods, UpdateUI() and HealPlayer(). When you click on the healing potion in the inventory, a button component calls the "HealPlayer()"-function. Everything works fine, but when I click on the potion, I get an error "Object Reference not set to an instance of an object ". I've seen many people having this problem, but no solution worked for my problem. Can someone help me? Thank you.