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