Exemplo n.º 1
0
 IEnumerator keepAttacking()
 {
     while (!isDead)
     {
         torso.attack();
         float delay = torso.isStaggered() ? staggerDelay : attackDelay;
         yield return(new WaitForSeconds(delay));
     }
     yield return(null);
 }