Esempio n. 1
0
        public override void OnStart(StartState state)
        {
            UnityEngine.Random.InitState((int)System.DateTime.Now.Ticks);
            base.OnStart(state);
            if (HighLogic.LoadedSceneIsFlight == false)
            {
                return;
            }

            //Setup
            scienceLabView      = new ScienceLabResultsView("Science Lab");
            transmitHelper      = new TransmitHelper();
            transmitHelper.part = this.part;
            transmitHelper.transmitCompleteDelegate = TransmitComplete;
            scienceLabView.part       = this.part;
            scienceLabView.scienceLab = this;

            //Feedback messages
            attemptCriticalFail    = kResearchCriticalFail;
            attemptCriticalSuccess = kResearchCriticalSuccess;
            attemptFail            = kResearchFail;
            attemptSuccess         = kResearchSuccess;

            //Repairs
            status = "";
        }