Table of Contents

Class CounterBuilderWhenExtensions

Namespace
LunyScript
/
Assembly
LunyScript.dll
public static class CounterBuilderWhenExtensions
Expand Details ...
Inheritance
object
CounterBuilderWhenExtensions

Methods

WhenPaused<T>(CoroutineCounterBuilder<T>, params ScriptActionBlock[])

Blocks to run when the coroutine is paused.

public static CoroutineCounterBuilder<T> WhenPaused<T>(this CoroutineCounterBuilder<T> b, params ScriptActionBlock[] pausedBlocks) where T : struct, ICoroutineCounterWhen

Parameters

Type Name Description
CoroutineCounterBuilder<T>
b
ScriptActionBlock[]
pausedBlocks

Returns

CoroutineCounterBuilder<T>

Type Parameters

T

WhenProcessed<T>(CoroutineCounterBuilder<T>, params ScriptActionBlock[])

public static CoroutineCounterBuilder<T> WhenProcessed<T>(this CoroutineCounterBuilder<T> b, params ScriptActionBlock[] processBlocks) where T : struct, ICoroutineCounterWhen

Parameters

Type Name Description
CoroutineCounterBuilder<T>
b
ScriptActionBlock[]
processBlocks

Returns

CoroutineCounterBuilder<T>

Type Parameters

T

WhenResumed<T>(CoroutineCounterBuilder<T>, params ScriptActionBlock[])

Blocks to run when the coroutine is resumed.

public static CoroutineCounterBuilder<T> WhenResumed<T>(this CoroutineCounterBuilder<T> b, params ScriptActionBlock[] resumedBlocks) where T : struct, ICoroutineCounterWhen

Parameters

Type Name Description
CoroutineCounterBuilder<T>
b
ScriptActionBlock[]
resumedBlocks

Returns

CoroutineCounterBuilder<T>

Type Parameters

T

WhenStarted<T>(CoroutineCounterBuilder<T>, params ScriptActionBlock[])

Blocks to run when the coroutine starts.

public static CoroutineCounterBuilder<T> WhenStarted<T>(this CoroutineCounterBuilder<T> b, params ScriptActionBlock[] startedBlocks) where T : struct, ICoroutineCounterWhen

Parameters

Type Name Description
CoroutineCounterBuilder<T>
b
ScriptActionBlock[]
startedBlocks

Returns

CoroutineCounterBuilder<T>

Type Parameters

T

WhenStopped<T>(CoroutineCounterBuilder<T>, params ScriptActionBlock[])

Blocks to run when the coroutine stops.

public static CoroutineCounterBuilder<T> WhenStopped<T>(this CoroutineCounterBuilder<T> b, params ScriptActionBlock[] stoppedBlocks) where T : struct, ICoroutineCounterWhen

Parameters

Type Name Description
CoroutineCounterBuilder<T>
b
ScriptActionBlock[]
stoppedBlocks

Returns

CoroutineCounterBuilder<T>

Type Parameters

T