public virtual void UpdateServerState(bool _isOn) { if (isOn) { powerSupply.TurnOnSupply(); PreviousResistance = 0; Previouscurrent = 0; } else { powerSupply.TurnOffSupply(); } }
void UpdateServerState(bool _isOn) { isOnForInterface = _isOn; if (isOn) { RelatedDevice.TurnOnSupply(); PreviousResistance = 0; Previouscurrent = 0; } else { RelatedDevice.Data.ChangeToOff = true; ElectricalSynchronisation.NUStructureChangeReact.Add(this); } }