Click or drag to resize

DocumentRunT1, T2, T3, T4(Double, FuncT1, T2, T3, T4, IEnumerable, T1, T2, T3, T4) Method

Schedule a coroutine to be called after a delay in simulation time.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public ITask Run<T1, T2, T3, T4>(
	double delay,
	Func<T1, T2, T3, T4, IEnumerable> coroutine,
	T1 arg1,
	T2 arg2,
	T3 arg3,
	T4 arg4
)

Parameters

delay  Double
Simulation time from now in seconds.
coroutine  FuncT1, T2, T3, T4, IEnumerable
Coroutine to be invoked.
arg1  T1
First argument to coroutine.
arg2  T2
Second argument to coroutine.
arg3  T3
Third argument to coroutine.
arg4  T4
Fourth argument to coroutine.

Type Parameters

T1
Type of first argument to coroutine.
T2
Type of second argument to coroutine.
T3
Type of third argument to coroutine.
T4
Type of fourth argument to coroutine.

Return Value

ITask
An ITask representing the scheduled coroutine.
See Also