How to link UI Button to Script in Unity

Main menu button to start the Game

Main menu button in action

Main Menu UI Button

Build Settings

OnClick event of the Button