public override void Update() { StateSendTimer++; ForwardSimulate(); if (StateSendTimer < NetworkConfig.StateSendRate) { return; } NetworkServer.BroadcastState(Timestep, CurrentState, InputHistory.Current.Input); StateSendTimer = 0; }
public override void Update() { StateSendTimer++; if (StateSendTimer < NetworkConfig.StateSendRate) { return; } LatestInput[0] = InputHistory.Newest.Input; NetworkServer.BroadcastState(Timestep, CurrentState); BroadcastInputs(); StateSendTimer = 0; }