Advertisement
vjanomolee

Level2_info script

Apr 9th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Level2_info script
  2.  
  3. var infoSplashTime          =8;
  4. var w                   =300;
  5. var h                   =300;
  6. var infoActivated           =true;
  7.  
  8. function OnGUI()
  9. {
  10.     if(infoActivated == true)
  11.     {
  12.         var rect = Rect((Screen.width-w)/2, (Screen.height-h)/2, w, h);
  13.         GUI.Label (rect, "You beat Level 1, Keep up the good work!");
  14.         WaitForIt ();
  15.         infoActivated =false;
  16.     }
  17. }
  18.  
  19. function WaitForIt ()
  20. {
  21.     yield WaitForSeconds(infoSplashTime);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement