Step
method in Coherence.INetworkTime
Methods
void Step(double currentTime, bool stopApplyingServerSimFrame)
Updates the Coherence.Core.NetworkTime.ClientSimulationFrame using the current game time, advancing one frame every 1/60 second. The Coherence.Core.NetworkTime.NetworkTimeScale is smoothly interpolated towards TargetTimeScale with each call. With multiClientMode enabled, however, the callback trigger rate is scaled by Coherence.Core.NetworkTime.NetworkTimeScale.
Parameters
Type | Name | Description |
---|---|---|
double | currentTime | The current game time, usually just Time.time. Must be non-zero for OnFixedNetworkUpdate to be invoked. |
bool | stopApplyingServerSimFrame | Set this to true during frames when a received ServerSimulationFrame shouldn't be applied instantly. Setting this to true will apply the last received ServerSimulationFrame. |