Пример #1
0
 public override void OnStart(StartState state)
 {
     if (state == StartState.Editor)
     {
         return;
     }
     emitter = part.Modules.OfType <KethaneParticleEmitter>().First(e => e.Label == Emitter);
 }
Пример #2
0
        public override void OnStart(PartModule.StartState state)
        {
            if (state == StartState.Editor)
            {
                return;
            }
            this.part.force_activate();

            fanStates  = Misc.SetUpAnimation("generatorFan_anim", part);
            slatStates = Misc.SetUpAnimation("generatorSlats_anim", part);

            foreach (var fanState in fanStates)
            {
                fanState.wrapMode = WrapMode.Loop;
            }

            exhaustEmitter = part.Modules.OfType <KethaneParticleEmitter>().First(e => e.Label == "exhaust");
            exhaustEmitter.Setup();
        }
Пример #3
0
        public override void OnStart(PartModule.StartState state)
        {
            if (state == StartState.Editor) { return; }
            this.part.force_activate();

            fanStates = Misc.SetUpAnimation("generatorFan_anim", part);
            slatStates = Misc.SetUpAnimation("generatorSlats_anim", part);

            foreach (var fanState in fanStates)
            {
                fanState.wrapMode = WrapMode.Loop;
            }

            exhaustEmitter = part.Modules.OfType<KethaneParticleEmitter>().First(e => e.Label == "exhaust");
            exhaustEmitter.Setup();
        }
 public override void OnStart(StartState state)
 {
     if (state == StartState.Editor) { return; }
     emitter = part.Modules.OfType<KethaneParticleEmitter>().First(e => e.Label == Emitter);
 }