Ejemplo n.º 1
0
 public void Damage()
 {
     if (Health < 1)
     {
         isDead = true;
         return;
     }
     Debug.Log("Player : Damage()");
     Health--;
     UIManager.Instance.UpdateLives(Health);
     if (Health < 1)
     {
         _playerAnim.Death();
     }
 }