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