IEnumerator MobDie() { while (pool.AllDie() == true) { yield return(new WaitForSeconds(1)); } Debug.Log("다음 다이어로그 시작 부분"); if (player.getPlay()) { MyState.SetMyState(PlayerState.State.Talk); player.setPlay(false); } }