public override void OnStart(StartState state)
        {
            base.OnStart(state);
            if ((state != StartState.None) && (state != StartState.Editor))
            {
                moduleInteriorLight = part.Modules.GetModule <ModuleInteriorLight>();
                if (moduleInteriorLight != null)
                {
                    lastAnimSwitch = animSwitch;
                    moduleInteriorLight.interiorLight = !animSwitch; // Light animSwitch is reversed (ON=False, OFF=True)
                    ready = true;
#if DEBUG
                    Debug.Log("ModuleAnimateGenericConsumer.OnStart(): ready!");
#endif
                }
            }
        }
Exemplo n.º 2
0
        public override void OnStart(StartState state)
        {
            base.OnStart(state);
            if ((state != StartState.None) && (state != StartState.Editor))
            {
                moduleInteriorLight = part.Modules.GetModule <ModuleInteriorLight>();
                if (moduleInteriorLight != null)
                {
                    lastAnimState = animState;
                    moduleInteriorLight.interiorLight = animState;
                    ready = true;
#if DEBUG
                    Debug.Log("ModuleColorChangerConsumer.OnStart(): ready!");
#endif
                }
            }
        }