Exemple #1
0
    public void Score()
    {
        score++;
        if (score > highScore)
        {
            highScore = score;
            UpdateHighScore();
        }
        if (score % 5 == 0)
        {
            quests.AddRestCharges(1);
        }

        isScored = true;

        onScoredEvent.Invoke();
    }