예제 #1
0
 protected override void DI_Start(StartState state)
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         this.engines = new EngineManager(this.part);
     }
 }
예제 #2
0
 protected override void DI_Start(StartState state)
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         this.alternatorModule = this.part.Modules.OfType <ModuleAlternator>().First();
         this.engineManager    = new EngineManager(this.part);
     }
 }
예제 #3
0
 protected override void DI_Start(StartState state)
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         // An engine might actually be two engine modules (e.g: SABREs)
         this.engines = new EngineManager(this.part);
     }
 }
예제 #4
0
 protected override void DI_Start(StartState state)
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         this.gimbalModule  = this.part.Modules.OfType <ModuleGimbal>().Single();
         this.engineManager = new EngineManager(this.part);
     }
 }
예제 #5
0
 protected override void DI_Start(StartState state)
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         // An engine might actually be two engine modules (e.g: SABREs)
         this.engines = new EngineManager(this.part);
         // Catch if the part has a ModuleSurfaceFX
         if (this.part.Modules.OfType <ModuleSurfaceFX> ().Any())
         {
             surfaceFX = this.part.Modules.OfType <ModuleSurfaceFX>().Single();
         }
     }
 }
예제 #6
0
파일: Alternator.cs 프로젝트: vzwick/DangIt
 protected override void DI_Start(StartState state)
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         this.alternatorModule = this.part.Modules.OfType<ModuleAlternator>().Single();
         this.engineManager = new EngineManager(this.part);
     }
 }
예제 #7
0
파일: Engines.cs 프로젝트: vzwick/DangIt
 protected override void DI_Start(StartState state)
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         // An engine might actually be two engine modules (e.g: SABREs)
         this.engines = new EngineManager(this.part);
         // Catch if the part has a ModuleSurfaceFX
         if (this.part.Modules.OfType<ModuleSurfaceFX> ().Any ()) {
             surfaceFX = this.part.Modules.OfType<ModuleSurfaceFX>().Single();
         }
     }
 }
예제 #8
0
 protected override void DI_Start(StartState state)
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         // An engine might actually be two engine modules (e.g: SABREs)
         this.engines = new EngineManager(this.part);
     }
 }