protected void Application_Start() { //GlobalConfiguration.Configure(WebApiConfig.Register); campaignJob.Init(1); campaignJob.Start(); }
public void StartGame() { // Fire up factory workerFactory = WorkerFactory.instance; workerFactory.Init(); // Set up UI yearText.text = "YEAR " + year; taxText.text = "Tax: " + tax; goldText.text = "Gold: " + gold; // Create starting workers foreach (WorkerType type in GlobalInfo.instance.workers) { workers.Add(workerFactory.CreateWorker(type)); } PopulateWorkerMenu(); GoToPhase(Phase.SCOUT); GoToPhase(Phase.PLACEMENT); }