Пример #1
0
 private void Update()
 {
     if (_playerScript.GetLife() <= 0 && !isDying)
     {
         isDying = true;
         StartCoroutine(Die(deathAnimation));
     }
 }
Пример #2
0
 private void UpdateLifes()
 {
     lifeText.text = playerLifeScript.GetLife().ToString();
 }