Ejemplo n.º 1
0
 public void OnSourceStateChange()
 {
     if (FlowModule.ConfirmSources(this.resourceSources, Ref.mainVessel == this.part.vessel))
     {
         return;
     }
     this.on.boolValue = false;
 }
Ejemplo n.º 2
0
 public void OnSourceStateChange()
 {
     if (this.throttle.floatValue == 0f)
     {
         return;
     }
     if (FlowModule.ConfirmSources(this.resourceSources, Ref.mainVessel == this.part.vessel))
     {
         return;
     }
     if (this.engineOn.boolValue)
     {
         this.ToggleEngine(false);
     }
 }