private void OnClientReceiveMessage(WakeUpMessage message) { if (isServer) { return; } _serverTime = message.ServerTime; _serverLoopCount = message.LoopCount; WakeUpOrSleep(); }
private void SendServerTime() { var message = new WakeUpMessage { ServerTime = Time.timeSinceLevelLoad, LoopCount = _localLoopCount }; _wakeUpHandler.SendToAll(message); }