Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Level2_info script
- var infoSplashTime =8;
- var w =300;
- var h =300;
- var infoActivated =true;
- function OnGUI()
- {
- if(infoActivated == true)
- {
- var rect = Rect((Screen.width-w)/2, (Screen.height-h)/2, w, h);
- GUI.Label (rect, "You beat Level 1, Keep up the good work!");
- WaitForIt ();
- infoActivated =false;
- }
- }
- function WaitForIt ()
- {
- yield WaitForSeconds(infoSplashTime);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement