Example #1
0
        //constructor
        public SelectedKerbalEVA(KerbalEVA eva)
        {
            Kerbal            = eva;
            Joints01Transform = Part.transform.Find("globalMove01/joints01");
            States            = KerbalEVAUtility.GetEVAStates(eva);

            AddAnimationState();

            //set defaults
            IsAnimating = false;
        }
Example #2
0
        private ListValue ListEvents()
        {
            CheckEvaController();
            ListValue events = new ListValue();

            foreach (var evaevent in KerbalEVAUtility.GetEVAEvents(kerbaleva, KerbalEVAUtility.GetEVAStates(kerbaleva)))
            {
                events.Add(new StringValue(evaevent.name));
            }
            return(events);
        }