I am a new to unity and am trying to create a tracker to show in my end scene that shows how many answers the player got wrong but am not sure where to even start on coding it, any help at all would be greatly appreciated.
First thing I would do is make a variable for correct answers and hook it up.
The variable will look a lot like:
private int correctAnswerCount;
and increasing it will look a lot like
correctAnswerCount++;
This is a great way to start out: do one tiny thing at a time.
Imphenzia: How Did I Learn To Make Games:
Two steps to tutorials and / or example code:
- do them perfectly, to the letter (zero typos, including punctuation and capitalization)
- stop and understand each step to understand what is going on.
If you go past anything that you don’t understand, then you’re just mimicking what you saw without actually learning, essentially wasting your own time. It’s only two steps. Don’t skip either step.