private void TakeLife() { playerLives--; int currentSceneIndex = SceneManager.GetActiveScene().buildIndex; sceneManager.ChangeScene(currentSceneIndex); livesText.text = playerLives.ToString(); score = startOfLevelScore; scoreText.text = score.ToString(); }