I'm working on a mobile project that requires score to be collected from 3 score generating buttons. All three buttons have different point value assigned to them. I have: Snow button for 25 points. DJ button for 50 points. SnS button for 100 points.
I need to collect the score on a central collector but I'm having an issue. When I press the same button multiple times the counter works fine but as soon as I hit one of the other buttons, the counter resets back to 0 before adding the points from that button on.
I've seen this problem solved when colliders and OnTriggerEnter are involved but I am quite new to this so I'm struggling to apply those tutorials to my buttons.
I change the point value and the name of the code for each button. Any help is appreciated, thanks.
Fixed. Combined all three button codes into one and made more ClickButton functions.