Advertisement
kasru

Arcade Score System

Jan 27th, 2013
2,518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //****** Donations are greatly appreciated.  ******
  2. //****** You can donate directly to Jesse through paypal at  https://www.paypal.me/JEtzler   ******
  3.  
  4. var score1 : GUIText;
  5. var myScore : int = 0;
  6. var myCurScore : int = 500;
  7.  
  8. function Update () {
  9.  
  10.     score1.text = "Score: " + myScore;
  11.  
  12.     if(myScore < myCurScore) {
  13.         myScore += 10;
  14.     }
  15.  
  16.     if(Input.GetKeyDown("b")) {
  17.  
  18.         myCurScore += 100;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement