コード例 #1
0
ファイル: ScoreCounter.cs プロジェクト: jamccool/General
 // 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);
     }
 }