I would like a score counter pls?
I'm making a true or false game, I would like someone to make a script that counts every time a person gets the question right E.g; Mars Is Red would be true so +1 Point for the player. i would like instructions on how to get it to work if necessary. Thanks
Have you already tried incrementing an integer value and showing it on the screen via UI text?
private int correctAnswers = 0;
private int wrongAnswers = 0;
//Got correct answer
correctAnswers++;
//Got wrong answer
wrongAnswers++;
//Or do away with wrong answers and do this ins$$anonymous$$d
correctAnswers--;
You need to give some context into where you'd like the logic to be and behave, can't offer any more help otherwise.
I just want a score to go up every time a player gets the question right. Thanks btw..
Your answer
Follow this Question
Related Questions
I need a help with the score system in my game. Any help will be greatly appreciated. 1 Answer
Highscore and PlayerPrefs unity C# 1 Answer
Simplifying scoring system 0 Answers
How do I get points when clicking an object? 1 Answer
How to add and track scoring in online multiplayer with UI? (Unet) 0 Answers