public void CreateCity(HexCell cell, CityState cityState) { City city = Instantiate(cityPrefab); city.transform.localPosition = HexMetrics.Perturb(cell.Position); city.SetHexCell(cell); city.transform.SetParent(citiesObject.transform); city.SetCityState(cityState); city.HexVision.AddVisibleObject(city.CityUI.gameObject); city.UpdateUI(); cities.Add(city); hexGrid.AddCity(city); }