- Home /
counting the correct answer per gate
I have 6 gates in my game. Each gate will open if you answered the question asked correctly. Each gate has a script called question1,question2 ... question6 and if you collide to the gate, a gui will prompt and a multiple choice question will be asked.
My question here now is how will I be able to count the correct answer coming from each script? example: if question1 is correct, where should I put the score?
Answer by Berenger · Jan 30, 2012 at 05:17 PM
One Script to bring them all and in the darkness bind them.
So, LOTR jokes aside, you need a manager which is going to know whose question has been answered. And by the way, all your gates have the same behaviour, so you only need one script with different questions.
yeah i know that.. the content of the different question script is just the same.. i just named them differently.. lols :P
Your answer
![](https://koobas.hobune.stream/wayback/20220613063544im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
Material doesn't have a color property '_Color' 4 Answers
How to increase score by one per second when you are holding an object 2 Answers