Sunday, March 9, 2014

Credit Screen

// Credit Screen

// Inspector Variables

//

function OnGUI ()
{
// Make a group @ center of screen
GUI.BeginGroup(Rect (Screen.width/2-100,Screen.height/2-100,200,200));

// make box to see the group on screen
GUI.Box(Rect(0,0,200,200),"Credit");

//Credit
GUI.Label(Rect(10,40,210,50),     "By :  Kulprawee Prayoonsuk");
GUI.Label(Rect(10,70,200,80),     "Tutorial by WalkerBoyStudio ");
GUI.Label(Rect(10,100,200,110),   "Special Thank to  Alex Caswell");
GUI.Label(Rect(10,130,200,140),   "Mentor : Mr. Dan Cornell");
// Add BUttons here
if (GUI.Button(Rect(60,165,80,30),"Back"))
{
Application.LoadLevel("ScreenMainMenu");
}


// End group
GUI.EndGroup();
}

No comments:

Post a Comment