Im new to Unity, and Im in the process of making a little practice game. I made a state machine to help switch between states with the press of a button for testing purposes, but I have some buttons I made up in photoshop that I have added to the scene and Im drawing a blank on how to make them functional. To start with, the title screen has 3 options: Start, Options, Exit. I added the images to the scene and now I just need to know how to make it recognize that the button has been clicked and send it to the first scene of the game. I was looking through the API and found OnMouseDown, but I dont know how to assign it to the image of the button…If I can get this I can make the rest of the buttons in the game functional so it would be a big help.
–Eric