public void Start() { if (builder == null) { builder = new CivPopKerbalBuilder(this.GenerateKerbalName); } if (contractors == null) { contractors = new CivPopServiceContractors(builder); } if (death == null) { death = new CivPopServiceDeath(); } if (growth == null) { growth = new CivPopServiceGrowth(builder); } if (rent == null) { rent = new CivPopServiceRent(); } if (gui == null) { gui = new CivilianPopulationGUI(rent); } this.rng = new System.Random(); this.service = new CivilianPopulationService(); this.monitor = new CivilianPopulationMonitor(); }
public CivilianPopulationGUI(CivPopServiceRent rent) { GameEvents.onGUIApplicationLauncherReady.Add(onAppLauncherReady); //when AppLauncher can take apps, give it OnAppLauncherReady (mine) GameEvents.onGUIApplicationLauncherDestroyed.Add(onAppLauncherDestroyed); //Not sure what this does cheatPanel = new CheatPanel(rent); crewPanel = new CrewPanel(); vesselsPanel = new VesselsPanel(); }
public CivilianPopulationGUI(CivPopServiceRent rent) { InitButton(); #if DEBUG cheatPanel = new CheatPanel(rent); #endif crewPanel = new CrewPanel(); vesselsPanel = new VesselsPanel(); baseWindowID = UnityEngine.Random.Range(1000, 2000000) + _AssemblyName.GetHashCode(); }
public CivilianPopulationGUI(CivPopServiceRent rent) { #if false GameEvents.onGUIApplicationLauncherReady.Add(onAppLauncherReady); //when AppLauncher can take apps, give it OnAppLauncherReady (mine) GameEvents.onGUIApplicationLauncherDestroyed.Add(onAppLauncherDestroyed); //Not sure what this does #endif InitButton(); cheatPanel = new CheatPanel(rent); crewPanel = new CrewPanel(); vesselsPanel = new VesselsPanel(); baseWindowID = UnityEngine.Random.Range(1000, 2000000) + _AssemblyName.GetHashCode(); }
public void Start() { Instance = this; if (builder == null) { builder = new CivPopKerbalBuilder(this.GenerateKerbalName); } if (contractors == null) { contractors = new CivPopServiceContractors(builder); } if (death == null) { death = new CivPopServiceDeath(); } if (growth == null) { growth = new CivPopServiceGrowth(builder); } if (rent == null) { rent = new CivPopServiceRent(); } if (gui == null) { gui = new CivilianPopulationGUI(rent); } else { gui.InitButton(); } this.rng = new System.Random(); this.service = new CivilianPopulationService(); #if DEBUG this.monitor = new CivilianPopulationMonitor(); #endif DontDestroyOnLoad(this); StartCoroutine(SlowUpdate()); }
public CheatPanel(CivPopServiceRent rent) { this.rent = rent; }