void Awake()
        {
            this.Log("Awake");
            globalSettings = TacLifeSupport.Instance.globalSettings;
            gameSettings = TacLifeSupport.Instance.gameSettings;
            rosterWindow = new RosterWindow(globalSettings, gameSettings);
            monitoringWindow = new LifeSupportMonitoringWindow(this, globalSettings, gameSettings, rosterWindow);

            button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
                "LS", "TAC Life Support Monitoring Window", OnIconClicked, "FlightIcon");

            configFilename = IOUtils.GetFilePathFor(this.GetType(), "LifeSupport.cfg");

            //Check if DeepFreeze is installed and set bool.
            var DeepFreezeassembly = (from a in AppDomain.CurrentDomain.GetAssemblies()
                    where a.FullName.StartsWith("DeepFreeze")
                    select a).FirstOrDefault();
            if (DeepFreezeassembly != null)
            {
                IsDFInstalled = true;
            }
            else
            {
                IsDFInstalled = false;
            }
        }
 public SpaceCenterManager()
 {
     this.Log("Constructor");
     globalSettings = TacLifeSupport.Instance.globalSettings;
     gameSettings = TacLifeSupport.Instance.gameSettings;
     button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
         "LS", "TAC Life Support Configuration Window", OnIconClicked, "SpaceCenterIcon");
     configWindow = new SavedGameConfigWindow(globalSettings, gameSettings);
 }
        public TacLifeSupport()
        {
            this.Log("Constructor");
            Instance = this;
            gameSettings = new TacGameSettings();
            globalSettings = new GlobalSettings();

            globalConfigFilename = IOUtils.GetFilePathFor(this.GetType(), "LifeSupport.cfg");
        }
        void Awake()
        {
            this.Log("Awake");
            globalSettings = TacLifeSupport.Instance.globalSettings;
            gameSettings = TacLifeSupport.Instance.gameSettings;
            rosterWindow = new RosterWindow(globalSettings, gameSettings);
            monitoringWindow = new LifeSupportMonitoringWindow(this, globalSettings, gameSettings, rosterWindow);

            button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
                "LS", "TAC Life Support Monitoring Window", OnIconClicked, "FlightIcon");

            configFilename = IOUtils.GetFilePathFor(this.GetType(), "LifeSupport.cfg");
        }
 public AddLifeSupport(GlobalSettings globalSettings)
 {
     this.Log("Constructor");
     this.globalSettings = globalSettings;
 }
        public void Awake()
        {
            Instance = this;
            DontDestroyOnLoad(this);

            globalSettings = new GlobalSettings();
            LoadGlobalSettings();
        }
 public AddLifeSupport(GlobalSettings globalSettings)
 {
     this.Log("Constructor");
     this.globalSettings = globalSettings;
 }
 public AddLifeSupport()
 {
     this.Log("AddLifeSupport Constructor");
     this.globalSettings = TacStartOnce.Instance.globalSettings;
 }
 public AddLifeSupport()
 {
     this.Log("AddLifeSupport Constructor");
     this.globalSettings = TacStartOnce.Instance.globalSettings;
 }