Example #1
0
 // Update best score
 private void OnGameFinished()
 {
     if ((int)_currentScore > Data.GetBestScore())
     {
         Data.SetBestScore((int)_currentScore);
     }
 }
Example #2
0
 // Update best score
 private void OnGameFinished()
 {
     if ((int)_currentScore > Data.GetBestScore())
     {
         Data.SetBestScore((int)_currentScore);
         PlaySound(_newHighScore);
     }
 }