internal IEnumerator BurnDoT(HealthComponent healthComponent, int healthPerSecond = 1) { takingDamage = true; healthComponent.DamageEnemy(healthPerSecond); yield return(new WaitForSeconds(1)); takingDamage = false; }
internal void DamageE(int value) { health.DamageEnemy(value); }
IEnumerator WaitForDamage(HealthComponent health) { yield return(new WaitForSeconds(.5f)); health.DamageEnemy(10); }