// Update is called once per frame void Update() { var score = scoreManager.GetScore(); if (score > displayScore) { displayScore += 10; if (displayScore > score) { displayScore = score; } } RefreshScore(); }
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()); } } } }