예제 #1
0
        public override void OnStart(StartState state)
        {
            terrainUplinkView = new TerainUplinkView();
            base.OnStart(state);
            this.geoLabView.drawView = this.drawView;

            if (HighLogic.LoadedSceneIsFlight == false)
            {
                return;
            }

            //Get the experiment lab
            experimentLab = this.part.FindModuleImplementing <WBIExperimentLab>();
            if (experimentLab == null)
            {
                return;
            }
            experimentLab.unavailableMessage = kUnavailableMessage;

            //Hide the experiment lab if the
            if (Utils.IsBiomeUnlocked(this.part.vessel) == false)
            {
                experimentLab.isAvailable = false;
            }
        }