Beispiel #1
0
    public void AddScore(IScoreable e)
    {
        score += e.score;

        if (score > highScore)
        {
            AddHighScore();
        }

        if (score == spawner.scoreToBossSpawn)
        {
            spawner.SpawnFinalBoss();
        }
        UIManager.RefreshScoreUI();
    }
Beispiel #2
0
 private void Init()
 {
     spawner   = EnemySpawner.Get();
     highScore = PlayerPrefs.GetInt("HighScore");
     UIManager = UIGameplayManager.Get();
     UIManager.RefreshScoreUI();
 }