Example #1
0
 public void EnemyAttack(int damage)
 {
     playerHealthDisplay.GetComponent <Animator>().SetTrigger("Damage Trigger");
     //if player loses all life - lose
     player.TakeDamage(damage);
     playerHealthDisplay.UpdateDisplay();
     playerArmorDisplay.UpdateDisplay();
 }