so i have a game and its contains question with 3 options(buttons), i want my code as the following: if the user clicked on the correct answer(button) i will give him scene that’s contain specific feedback, and the same for the other answers.
i’ve been trying many solutions and nothing worked
Simplify the behavior you want. In this case, when the user clicks a button it sends a managing script which button it was. That’s all. It does not concern itself whether the answer is correct or not, your managing script does that and reacts accordingly. So each button should call a method in the managing script and pass a value indicating which button it was (like 1, 2, 3). Use the same method for each, just change the value passed, which you can set in the Inspector Event ui.