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 } } }
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 } } }