예제 #1
0
            void Start()
            {
                ProtoCrewMember kerbal = Apply();

                Debug.Log("CustomSuit.Start", "kerbal = " + kerbal + " (" + kerbal?.GetType() + ")");
                if (kerbal == null)
                {
                    return;
                }

                eva = GetComponent <KerbalEVA>();

                LoadFor(kerbal);
                ApplyTo(kerbal);

                if (HighLogic.LoadedSceneIsFlight && eva != null)
                {
                    if (Nyan.forever)
                    {
                        TimingManager.UpdateAdd(TimingManager.TimingStage.Normal, RainbowJets);
                        return;
                    }

                    TimingManager.UpdateAdd(TimingManager.TimingStage.Normal, CheckGee);

                    if (helmetLowPressure != null || helmetHighPressure != null)
                    {
                        Helmet();
                        TimingManager.UpdateAdd(TimingManager.TimingStage.Normal, Helmet);
                    }
                }
            }
예제 #2
0
            internal void OnStart()
            {
                ProtoCrewMember kerbal = Apply();

                Debug.Log("CustomNavBall.Start", "kerbal = " + kerbal + " (" + kerbal?.GetType() + ")");
                if (kerbal == null)
                {
                    return;
                }

                LoadFor(kerbal);
                ApplyTo(FlightUIModeController.Instance);
            }