'Why does my unity buttons stopped working? [closed]

I'm following an online course and then I noticed that the buttons just stopped working.

Here are some images The Scene View, Game Over Canvas Components, Game Over Text Components, Restart Button Components(The Broken Button), Leave Text Components(The Other Broken Button), The Script That Have Something to do with the canvas.

I've tried multiple solutions on the internet and nothing works and I think I didn't mess with anything else but the colors and the text in the button. I just want the buttons to work like it's a button.



Solution 1:[1]

your EventSystem Object maybe deleted or disabled, try to recreate it:

Component structure

It will created automatically when you create UI/Canvas:

Event system under Canvas

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 KiynL