Table of Contents

Class CounterBuilderWhenExtensions

Namespace
LunyScript.ScriptApi
Assembly
LunyScript.dll
public static class CounterBuilderWhenExtensions
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

b CoroutineCounterBuilder<T>
pausedBlocks ScriptActionBlock[]

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

b CoroutineCounterBuilder<T>
processBlocks ScriptActionBlock[]

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

b CoroutineCounterBuilder<T>
resumedBlocks ScriptActionBlock[]

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

b CoroutineCounterBuilder<T>
startedBlocks ScriptActionBlock[]

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

b CoroutineCounterBuilder<T>
stoppedBlocks ScriptActionBlock[]

Returns

CoroutineCounterBuilder<T>

Type Parameters

T