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

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

        health.DamageEnemy(10);
    }