MLAPI/docs/M_MLAPI_NetworkingManagerComponents_LagCompensationManager_Simulate.md
2018-03-31 10:20:18 +02:00

1.2 KiB

LagCompensationManager.Simulate Method (Int32, Action)

Turns time back a given amount of seconds, invokes an action and turns it back. The time is based on the estimated RTT of a clientId

Namespace: MLAPI.NetworkingManagerComponents
Assembly: MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static void Simulate(
	int clientId,
	Action action
)

Parameters

 

clientId
Type: System.Int32
The clientId's RTT to use
action
Type: System.Action
The action to invoke when time is turned back

See Also

Reference

LagCompensationManager Class
Simulate Overload
MLAPI.NetworkingManagerComponents Namespace