My script is exactly the same as the instructor’s, but whenever I run the program, while the instructor can interact with the buttons, I can’t do so, the buttons are interactable in the inspector but I can’t actually click on them.
At a guess, are the UI elements hooked up?
When dealing with UI, there’s usually more to it than code.
I think it’s the code because when I remove the code from the game object that needs it, i can press the button but the gameobject requires the script and so after the game ends nothing happens.
Could be.
So what’s in the code that isn’t working?