Ejemplo n.º 1
0
 IEnumerator RegenRoutine()
 {
     while(stats.health >= 0){
       stats.Update();
       yield return new WaitForSeconds(0.2f);
     }
 }