Ejemplo n.º 1
0
 IEnumerator IntroduceEnemies(GameObject go, string enemyType, float health, float speed, float damage)
 {
     currInfo = waveAnimator.GetCurrentAnimatorStateInfo(0);
     while (!currInfo.IsName("PostAnim"))
     {
         currInfo = waveAnimator.GetCurrentAnimatorStateInfo(0);
         yield return(null);
     }
     //yield return new WaitForSeconds(1f);
     ca.IntroduceCharacter(go.transform, enemyType, health, speed, damage);
 }