Go to scene by xbox controller button press script.

Hello guys. I am making a unity game for the xbox, but im having a problem. I have looked for scripts and tried to make my own, but cant figure it out. How can I make it to where when the player taps the “A” button or “B” button or whatever, they will be sent to a scene? (Note: This is for a main menu.) I really don’t expect you guys to just give me answers, but can you please help or end me a link or even a script?? It would really be appreciated! You have no idea how long ive looked into this! Thanks guys!

Inside the function Update you check for Input.GetButtonDown (of course you already set the button name/value in your Project Settings > Input) and eventually use Application.LoadLevel