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