예제 #1
0
        // Update is called once per frame
        void Update()
        {
            var score = scoreManager.GetScore();

            if (score > displayScore)
            {
                displayScore += 10;
                if (displayScore > score)
                {
                    displayScore = score;
                }
            }
            RefreshScore();
        }
예제 #2
0
 internal void Check()
 {
     if (scoreManager.GetScore() >= scoreManager.GetNextScore())
     {
         if (scoreManager.NextLevel())
         {
             effectGenerator.GenerateEffect();
             if (scoreManager.IsClear())
             {
                 sePlayer.SoundClearSE();
             }
             else
             {
                 sePlayer.SoundLevelUpSE();
                 templeSpriteChanger.ChangeTempleSprite(scoreManager.GetLevel());
             }
         }
     }
 }