LagCompensationManagerSimulate 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)
Syntaxpublic static void Simulate(
int clientId,
Action action
)
Parameters
- clientId
- Type: SystemInt32
The clientId's RTT to use - action
- Type: SystemAction
The action to invoke when time is turned back
See Also