Skip to content

Commit

Permalink
reset score as max score
Browse files Browse the repository at this point in the history
  • Loading branch information
tyson-kubota committed Mar 24, 2013
1 parent abeae56 commit 47f0294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ScoreController.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ static var maxScore = 25f;
static var visibleScore : float = 20f;

function Start() {
currentScore = 20;
ResetScore (25);
}

function LerpVisibleScore (start : float, end : float, timer : float) {
Expand Down Expand Up @@ -43,4 +43,4 @@ function ScoreUpdate ( timer : float) {
// Debug.Log("Your visibleScore is: " + visibleScore + " and your currentScore is: " + currentScore);
}

function ResetScore ( i : float ) {currentScore = 20;}
function ResetScore ( i : float ) {currentScore = maxScore;}

0 comments on commit 47f0294

Please sign in to comment.