void Update() { if (roundStartedServer && CustomNetworkManager.Instance._isServer) { ElectricalSynchronisation.DoUpdate(); } }
private void Update() { if (roundStartedServer && CustomNetworkManager.Instance._isServer && Mode == ElectricalMode.GameLoop && Running) { electricalSync.DoUpdate(false); } if (roundStartedServer && CustomNetworkManager.Instance._isServer && Running) { if (electricalSync.MainThreadProcess) { lock (ElectricalLock) { electricalSync.PowerNetworkUpdate(); electricalSync.MainThreadProcess = false; Monitor.Pulse(ElectricalLock); } } } }