Hi guys, I haven't really used coroutines much, just wondering about performance.
Let's say you have a unit with a 'poison' debuff that lasts for 20 seconds, and damages them every second.
Are you better off using Update(), applying the damage when the time is appropriate (say nextDamage = Time.time + 1 second), or are you better off somehow doing this in a coroutine, perhaps in a while loop?
As a second question relating to this, Is one or the other better for a multiplayer game? I don't think it would matter either way in this regard, but just thought I would ask.