예제 #1
0
        public override void OnStart(StartState state)
        {
            bool useEvaSuit = false;

            ProtoCrewMember kerbal = part.protoModuleCrew.FirstOrDefault();

            if (kerbal != null)
            {
                KerbalEVA kerbalEva = GetComponent <KerbalEVA>();

                useEvaSuit = kerbal.hasHelmetOn || !kerbalEva.CanEVAWithoutHelmet();
                Personaliser.Instance.PersonaliseEva(part, kerbal, useEvaSuit);
            }

            if (Reflections.Instance.ReflectionType == Reflections.Type.Real &&
                Reflections.Instance.IsVisorReflectionEnabled)
            {
                reflectionScript = new Reflections.Script(part, 1);
                reflectionScript.SetActive(useEvaSuit);
            }
        }