Calling same function for different objects only once
Hello,, so i am trying to make a level reward system that gives a 100 gold each time you level up. To claim that gold you have to press the button that marks your level. The thing is that it gives you a 100 gold everytime you press it and i only want to do it once. I've also donce the "bool calledOnce = false" then when pressed =true but then it doesn't work for the other buttons.
Any ideas?
Comment
Your answer
Follow this Question
Related Questions
Level Design, Offtopic question 0 Answers
Main Menu Help 2 Answers
How can i get the value of the Scrpit what is attached on the Image 0 Answers
SendMessage has no reciever 0 Answers
Is this bug known? function parameter s and if statements c# 1 Answer