public IEnumerator InflictDamage() { yield return(new WaitForSeconds(AttackAnimationDelay)); if (!IsDead) { PlayerHit.GetDamage(Damage); } }