コード例 #1
0
        public void AddScore(int scoreToAdd)
        {
            int currentScore = scoreValue.GetValue();
            int updatedScore = currentScore + scoreToAdd;

            scoreValue.SetValue(updatedScore);

            if (updatedScore > limitForLevel)
            {
                GameFlowManager.NextLevel();
            }
        }