C# Класс SpicyPixel.Threading.SystemCoroutine

This static class exposes convenience coroutines that can be passed to a fiber or task.
Показать файл Открыть проект

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

Метод Описание
RepeatForIterations ( Action action, int iterations ) : IEnumerator

Convenience coroutine to repeat an action for the specified number of iterations at the scheduler frequency.

Приватные методы

Метод Описание
RepeatForSeconds ( Action action, float seconds ) : IEnumerator

Convenience coroutine to repeat an action for the specified duration at the scheduler frequency.

This is internal until there is a scheduler agnostic way to handle delta time.

YieldForSeconds ( float seconds ) : FiberInstruction

Convenience coroutine to send a YieldForSeconds instruction to the scheduler and wait on it to complete.

Описание методов

RepeatForIterations() публичный статический Метод

Convenience coroutine to repeat an action for the specified number of iterations at the scheduler frequency.
public static RepeatForIterations ( Action action, int iterations ) : IEnumerator
action Action /// The action to execute. ///
iterations int /// The iterations to execute for. ///
Результат IEnumerator