Example #1
0
    private void TakeLife()
    {
        playerLives--;
        int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;

        sceneManager.ChangeScene(currentSceneIndex);
        livesText.text = playerLives.ToString();
        score          = startOfLevelScore;
        scoreText.text = score.ToString();
    }