C# 클래스 Nez.Systems.CoroutineManager

basic CoroutineManager. Coroutines can do the following: - yield return null (tick again the next frame) - yield return Coroutine.waitForSeconds( 3 ) (tick again after a 3 second delay) - yield return Coroutine.waitForSeconds( 5.5f ) (tick again after a 5.5 second delay) - yield return startCoroutine( another() ) (wait for the other coroutine before getting ticked again)
상속: IUpdatableManager
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
startCoroutine ( IEnumerator enumerator ) : ICoroutine

adds the IEnumerator to the CoroutineManager. Coroutines get ticked before Update is called each frame.

비공개 메소드들

메소드 설명
IUpdatableManager ( ) : void
tickCoroutine ( CoroutineImpl coroutine ) : bool

ticks a coroutine. returns true if the coroutine should continue to run next frame. This method will put finished coroutines back in the Pool!

메소드 상세

startCoroutine() 공개 메소드

adds the IEnumerator to the CoroutineManager. Coroutines get ticked before Update is called each frame.
public startCoroutine ( IEnumerator enumerator ) : ICoroutine
enumerator IEnumerator Enumerator.
리턴 ICoroutine