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
Показать файл Открыть проект

Открытые методы

Метод Описание
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