Beispiel #1
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>().First();
         }
     }
 }
Beispiel #2
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();
         }
     }
 }