Esempio n. 1
0
    public void LoseLife()
    {
        lives--;
        if (LivesUpdatedEvent != null)
        {
            LivesUpdatedEvent(lives);
        }

        if (lives <= 0)
        {
            BasketCatcherCore.instance.SubmitScore(totalScore);
            SceneSwitcher.LoadHighScores();
        }
    }