Exemplo n.º 1
0
 public override void OnStart(StartState state)
 {
     if (state == StartState.Editor)
     {
         return;
     }
     emitter = part.Modules.OfType <KethaneParticleEmitter>().First(e => e.Label == Emitter);
 }
Exemplo n.º 2
0
        public override void OnStart(PartModule.StartState state)
        {
            if (state == StartState.Editor) { return; }
            this.part.force_activate();

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

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

            exhaustEmitter = part.Modules.OfType<KethaneParticleEmitter>().First(e => e.Label == "exhaust");
            exhaustEmitter.Setup();
        }
Exemplo n.º 3
0
        public override void OnStart(PartModule.StartState state)
        {
            if (state == StartState.Editor)
            {
                return;
            }
            this.part.force_activate();

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

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

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