public ResourceRecovery() { Debug.Log("Constructor"); Instance = this; gameSettings = new ResourceRecoveryGameSettings(); globalSettings = new ResourceRecoveryGlobalSettings(); globalConfigFilename = IOUtils.GetFilePathFor(this.GetType(), "LifeSupport.cfg"); }
void Awake() { Debug.Log("Awake"); globalSettings = ResourceRecovery.Instance.globalSettings; gameSettings = ResourceRecovery.Instance.gameSettings; button = ToolbarManager.Instance.add("ResourceRecovery", "FlightIcon"); button.TexturePath = "Philotical/ResourceRecovery/textures/ResourceRecoveryGasStationSymbol_small"; button.ToolTip = "Resource Recovery"; button.OnClick += (e) => OnIconClicked(); configFilename = IOUtils.GetFilePathFor(this.GetType(), "ResourceRecovery.cfg"); }
public void SpaceCenterManager() { Debug.Log("Constructor"); globalSettings = ResourceRecovery.Instance.globalSettings; gameSettings = ResourceRecovery.Instance.gameSettings; button = ToolbarManager.Instance.add("ResourceRecovery", "SpaceCenterIcon"); button.TexturePath = "Philotical/ResourceRecovery/textures/ResourceRecoverySymbol"; button.ToolTip = "Resource Recovery"; button.OnClick += (e) => OnIconClicked(); configWindow = new ResourceRecoverySavedGameConfigWindow(globalSettings, gameSettings); }