예제 #1
0
        public void AddScorePoints(int scorePoints)
        {
            Score += scorePoints;
            SignalsManager.Broadcast(_scoreSignal.Name, Score);

            var level = GameConfiguration.GetLevelByScore(Score);

            if (level > Level)
            {
                Level = level;
                SignalsManager.Broadcast(_levelSignal.Name, level);
                SaveLevelAndScore();
            }
        }