I’ve set up a scene as a “Select Player” GUI. There are 3 animated players basically in an idle position to select from. When the game object is selected I want to be taken to the 1st level with that player displayed.
I created a Javascript and dragged it onto one of the players. I added the following code to that script.
/ Loads the level named “Maze A” as a response
// to the user clicking on the object
function OnMouseUp () {
Application.LoadLevel (“Maze A”);
}
Nothing happens when I click on the player. What is the correct code to achieve this design? Obviously I’m missing something very basic here.
Digital Duane