Esempio n. 1
0
 public void PlayerTakeDamage(float damage)
 {
     audioManager.Play("Player_Hit");
     playerHealth -= damage;
     gui.AddHealth(-damage);
     if (playerHealth <= 0)
     {
         StartCoroutine(PlayerDeath());
     }
 }