Exemplo n.º 1
0
    public void AddBuilding(BuildConfig buildConfig)
    {
        CityStateBuilding cityStateBuilding = Instantiate(buildConfig.GameObjectPrefab, transform).GetComponent <CityStateBuilding>();

        buildings.Add(cityStateBuilding);
        RefreshYields();
    }
Exemplo n.º 2
0
 public void RemoveBuilding(CityStateBuilding cityStateBuilding)
 {
     buildings.Remove(cityStateBuilding);
     RefreshYields();
 }