Esempio n. 1
0
    internal IEnumerator BurnDoT(HealthComponent healthComponent, int healthPerSecond = 1)
    {
        takingDamage = true;
        healthComponent.DamageEnemy(healthPerSecond);
        yield return(new WaitForSeconds(1));

        takingDamage = false;
    }
Esempio n. 2
0
 internal void DamageE(int value)
 {
     health.DamageEnemy(value);
 }
Esempio n. 3
0
    IEnumerator WaitForDamage(HealthComponent health)
    {
        yield return(new WaitForSeconds(.5f));

        health.DamageEnemy(10);
    }