#pragma strict

//var startButton:Texture;
var startButton:Texture;

var alpha: float = 0;

function OnGUI(){

if(GUI.Button(Rect(500,500,200,80), “Quit Game”)){
Application.Quit();
}

if(GUI.Button(Rect(500,400,200,80), “Play Again”)){
Application.LoadLevel(“BallerinaLevel”);
}

}

function Update () {

if(Input.GetKeyDown(“s”))
{
Application.LoadLevel(“BallerinaLevel”);
}
}

About the author

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>