private void TakeLife() { CurrentPlayerLives--; livesText.text = CurrentPlayerLives.ToString(); if (LastCheckpointOnHit != Vector2.zero) { hasHit = true; } SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }
private void Start() { livesText.text = CurrentPlayerLives.ToString(); goldText.text = gold.ToString(); }