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

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

        health.DamageEnemy(10);
    }