강의

멘토링

로드맵

Inflearn Community Q&A

mixcofee0724's profile image
mixcofee0724

asked

[MMORPG Game Development Series with C# and Unity] Part3: Unity Engine

Coroutine #1

Coroutine 질문

Written on

·

277

1

CoroutineTest test = new CoroutineTest();

여기서 할당을 받은거 뿐인데  어떻게  foreach에서 CoroutineTest 내부에 있는 함수가 실행되어서 yield return 값이 전달되는지 궁금합니다

C#unity

Answer 1

1

Rookiss님의 프로필 이미지
Rookiss
Instructor

IEnumerable과 IEnumerator가 foreach와 맞물려서 동작하기 때문에 그렇습니다.

mixcofee0724's profile image
mixcofee0724

asked

Ask a question