Class TimerBuilderWhenExtensions
- Namespace
- LunyScript.ScriptApi /
- Assembly
- LunyScript.dll
public static class TimerBuilderWhenExtensions
Expand Details ...
- Inheritance
-
objectTimerBuilderWhenExtensions
Methods
WhenPaused<T>(CoroutineTimerBuilder<T>, params ScriptActionBlock[])
Blocks to run when the coroutine is paused.
public static CoroutineTimerBuilder<T> WhenPaused<T>(this CoroutineTimerBuilder<T> b, params ScriptActionBlock[] pausedBlocks) where T : struct, ICoroutineTimerWhen
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
pausedBlocks |
Returns
Type Parameters
T
WhenProcessed<T>(CoroutineTimerBuilder<T>, params ScriptActionBlock[])
Blocks to run when the coroutine is resumed.
public static CoroutineTimerBuilder<T> WhenProcessed<T>(this CoroutineTimerBuilder<T> b, params ScriptActionBlock[] processBlocks) where T : struct, ICoroutineTimerWhen
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
processBlocks |
Returns
Type Parameters
T
WhenResumed<T>(CoroutineTimerBuilder<T>, params ScriptActionBlock[])
Blocks to run when the coroutine is resumed.
public static CoroutineTimerBuilder<T> WhenResumed<T>(this CoroutineTimerBuilder<T> b, params ScriptActionBlock[] resumedBlocks) where T : struct, ICoroutineTimerWhen
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
resumedBlocks |
Returns
Type Parameters
T
WhenStarted<T>(CoroutineTimerBuilder<T>, params ScriptActionBlock[])
Blocks to run when the coroutine starts.
public static CoroutineTimerBuilder<T> WhenStarted<T>(this CoroutineTimerBuilder<T> b, params ScriptActionBlock[] startedBlocks) where T : struct, ICoroutineTimerWhen
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
startedBlocks |
Returns
Type Parameters
T
WhenStopped<T>(CoroutineTimerBuilder<T>, params ScriptActionBlock[])
Blocks to run when the coroutine stops.
public static CoroutineTimerBuilder<T> WhenStopped<T>(this CoroutineTimerBuilder<T> b, params ScriptActionBlock[] stoppedBlocks) where T : struct, ICoroutineTimerWhen
Parameters
| Type | Name | Description |
|---|---|---|
b |
||
stoppedBlocks |
Returns
Type Parameters
T