// Use this for initialization void Awake() { menu = gameObject.GetComponent <TownView>(); Random r = new Random(DateTime.Now.Millisecond); int townNumber = r.Next(1, 100); town = new Town("Town" + townNumber); town.AddMarket(ResourceUtil.Wheat); town.AddMarket(ResourceUtil.Wood); town.AddMarket(ResourceUtil.Ore); town.AddMarket(ResourceUtil.Metal); town.AddMarket(ResourceUtil.Tools); roundUpdateListener = new UnityAction(RoundActions); EventManager.StartListening("UpdateRound", roundUpdateListener); for (int i = 0; i < 5; i++) { town.SpawnAgent(Entity.EntityType.farmer); town.SpawnAgent(Entity.EntityType.woodcutter); town.SpawnAgent(Entity.EntityType.miner); town.SpawnAgent(Entity.EntityType.smelter); town.SpawnAgent(Entity.EntityType.blacksmith); } }