IEnumerator StatusRoutine() { float t = 1; while (true) { damageReceiver.Damage(fireElement.DPS); yield return(new WaitForSeconds(t)); t += 1; if (t >= fireElement.duration) { yield break; } } }
void RetranslateDamage(float damage) { parentDamageReceiver.Damage(damage); }