예제 #1
0
 //tell the scoring system everything it needs to know a couple seconds before the game quits
 void prepVictory()
 {
     winnerExists = true;
     victoryTime  = Time.time;        //record the moment when you won so we know when to load the next scene
     ScoreKeeper.ClearRoundScores();
     ScoreKeeper.roundScores [player1] = 12;
     ScoreKeeper.roundScores [player2] = 12;
     ScoreKeeper.winMessage            = "PLAYERS " + player1.ToString() + " AND " + player2.ToString() + " WIN!";
 }