So, I encountered something that I think is a bit odd and I was wondering if anyone could explain it to me. Basically, I have a script that counts how many times I have clicked on a group of specific game objects. It counts the amount of times I clicked on an object, updates an increment variable, and is then printed on a GUI box. For some odd reason, when I call the method that does the counting in Update, the GUI that displays the increment variable doesn't change. When I switch to...
Odd bug when counting amount of times the mouse button has been pressed
Odd bug when counting amount of times the mouse button has been pressed