private void ToggleOff() { UpdateManager.Remove(CallbackType.UPDATE, UpdateMe); electricalNodeControl.TurnOffSupply(); baseSpriteHandler.ChangeSprite((int)SpriteState.Off); isOn = false; }
private void ToggleOff() { baseSpriteHandler.ChangeSprite((int)SpriteState.Off); electricalNodeControl.TurnOffSupply(); if (burningSheet != null) { burningSheet.StopBurningPlasma(); } isOn = false; }
public void UpdateServerState(bool _isOn) { if (isOn) { ElectricalNodeControl.TurnOnSupply(); } else { ElectricalNodeControl.TurnOffSupply(); } }
public void UpdateServerState(bool _isOn) { if (isOn) { //Logger.Log("TurnOnSupply"); ElectricalNodeControl.TurnOnSupply(); } else { //Logger.Log("TurnOffSupply"); ElectricalNodeControl.TurnOffSupply(); } }
private void ChangePowerState(bool newState) { if (newState) { isOn = true; electricalNodeControl.TurnOnSupply(); } else { isOn = false; electricalNodeControl.TurnOffSupply(); } }
public void UpdateServerState(bool _isOn) { if (_isOn && TryBurnFuel()) { ElectricalNodeControl.TurnOnSupply(); isOn = true; } else { isOn = false; ElectricalNodeControl.TurnOffSupply(); if (plasmaFuel.Count > 0) { plasmaFuel[0].StopBurningPlasma(); } } }
private void ServerToggleOutputModeOff() { outputEnabledIndicator.PushClear(); electricalNodeControl.TurnOffSupply(); outputEnabled = false; }