BDB.ModuleBdbAnimatedEngine.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
        public void Start()
        {
            animationStates = SetUpAnimation(animationName, this.part);

            if(HighLogic.LoadedSceneIsFlight)
            {
                engines = this.GetComponents<ModuleEngines>().ToList();
                engineIsOn = QueryEngineOn() || (isOneShot && deployed);

                multiController = this.GetComponent<MultiModeEngine>();
                if (multiController != null)
                    hasMultiEngine = true;
            }

            foreach(AnimationState anim in animationStates)
            {
                if (engineIsOn)
                {
                        anim.normalizedTime = 1f;
                }
                else
                {
                        anim.normalizedTime = 0f;
                }
            }
        }