Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- var score1 : GUIText;
- var myScore : int = 0;
- var myCurScore : int = 500;
- function Update () {
- score1.text = "Score: " + myScore;
- if(myScore < myCurScore) {
- myScore += 10;
- }
- if(Input.GetKeyDown("b")) {
- myCurScore += 100;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement