예제 #1
0
    IEnumerator DoDamage()
    {
        while (player.life >= 0)
        {
            yield return(new WaitForSecondsRealtime(2f));

            virus.DoDamage(virusDamage);
        }
    }