Пример #1
0
    //increase the player score
    public void IncreaseScore(int amount)
    {
        //increase the score by the amount
        score += amount;
        hudManager.ResetScore();

        if (score > highScore)
        {
            //save a new highscore
            highScore = score;
            hudManager.ResetHighScore();
        }
    }