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); }