IEnumerator DoDamage() { while (player.life >= 0) { yield return(new WaitForSecondsRealtime(2f)); virus.DoDamage(virusDamage); } }