public void LoseLife() { playerLives -= 1; if (playerLives == 0) { ScoreTracker.CheckScore(playerScore); SceneManager.LoadScene("EndScene"); } }