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