public void AddScore(int scoreToAdd) { int currentScore = scoreValue.GetValue(); int updatedScore = currentScore + scoreToAdd; scoreValue.SetValue(updatedScore); if (updatedScore > limitForLevel) { GameFlowManager.NextLevel(); } }