예제 #1
0
        protected void Application_Start()
        {
            //GlobalConfiguration.Configure(WebApiConfig.Register);

            campaignJob.Init(1);
            campaignJob.Start();
        }
예제 #2
0
    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);
    }