I’m playing with Unity for about a half year now and I have learned a lot with the help of this forum. But I know, I have still a lot to learn.
In my game there is a kind of a display with three buttons below (A, B and C).
A multiple choice question appears on the display and you can click with the mouse on button A, B or C to give the right answer.
After you clicked on a button, a new multiple choice question appears on the display that you also have to answer, etc.
When you have answered all questions, a door opens for example.
But when a question appears and when you hit one button several times fast, it goes wrong. Then you already give an answer to the question that not is displayed yet.
I’m not sure but I think that every mouse click is stored in a buffer and when the new question appears, the next mouse click in the buffer is taken as new answer. Is that right?
What I have right now is that the three buttons are disabled after the first click on one of them. But when you go on with clicking on a button, I think a mouse buffer is filled and it’s passed on to the next question.
My question now is if there is a way to clear the mouse buffer (if it exists) after every mouse click so that you don’t have the problem that I have described?