示例#1
0
 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;
 }
示例#3
0
 public void UpdateServerState(bool _isOn)
 {
     if (isOn)
     {
         ElectricalNodeControl.TurnOnSupply();
     }
     else
     {
         ElectricalNodeControl.TurnOffSupply();
     }
 }
示例#4
0
 public void UpdateServerState(bool _isOn)
 {
     if (isOn)
     {
         //Logger.Log("TurnOnSupply");
         ElectricalNodeControl.TurnOnSupply();
     }
     else
     {
         //Logger.Log("TurnOffSupply");
         ElectricalNodeControl.TurnOffSupply();
     }
 }
示例#5
0
 private void ChangePowerState(bool newState)
 {
     if (newState)
     {
         isOn = true;
         electricalNodeControl.TurnOnSupply();
     }
     else
     {
         isOn = false;
         electricalNodeControl.TurnOffSupply();
     }
 }
示例#6
0
 public void UpdateServerState(bool _isOn)
 {
     if (_isOn && TryBurnFuel())
     {
         ElectricalNodeControl.TurnOnSupply();
         isOn = true;
     }
     else
     {
         isOn = false;
         ElectricalNodeControl.TurnOffSupply();
         if (plasmaFuel.Count > 0)
         {
             plasmaFuel[0].StopBurningPlasma();
         }
     }
 }
示例#7
0
 private void ServerToggleOutputModeOff()
 {
     outputEnabledIndicator.PushClear();
     electricalNodeControl.TurnOffSupply();
     outputEnabled = false;
 }