private void Update() { if (_playerScript.GetLife() <= 0 && !isDying) { isDying = true; StartCoroutine(Die(deathAnimation)); } }
private void UpdateLifes() { lifeText.text = playerLifeScript.GetLife().ToString(); }
private void Update() { if (_playerScript.GetLife() <= 0 && !isDying) { isDying = true; StartCoroutine(Die(deathAnimation)); } }
private void UpdateLifes() { lifeText.text = playerLifeScript.GetLife().ToString(); }