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

            //Setup
            fakeExperiment                  = new FakeExperimentResults();
            fakeExperiment.part             = this.part;
            fakeExperiment.transmitDelegate = transmitResults;
            transmitHelper.part             = this.part;

            attemptCriticalFail    = kResearchCriticalFail;
            attemptCriticalSuccess = kResearchCriticalSuccess;
            attemptFail            = kResearchFail;
            attemptSuccess         = kResearchSuccess;
        }
Example #2
0
        public override void OnStart(StartState state)
        {
            UnityEngine.Random.seed = (int)System.DateTime.Now.Ticks;
            base.OnStart(state);
            if (HighLogic.LoadedSceneIsFlight == false)
                return;

            //Setup
            fakeExperiment = new FakeExperimentResults();
            fakeExperiment.part = this.part;
            fakeExperiment.transmitDelegate = transmitResults;
            transmitHelper.part = this.part;

            attemptCriticalFail = kResearchCriticalFail;
            attemptCriticalSuccess = kResearchCriticalSuccess;
            attemptFail = kResearchFail;
            attemptSuccess = kResearchSuccess;
        }