Exemple #1
0
    public void SetInitialValues(RectInt mapBounds, Tilemap tileMap, Unit unit)
    {
        buildingMapBounds = mapBounds;
        buildingTileMap   = tileMap;

        Economy.DecreaseCoins(unit.price);
        Details details = GetComponent <Details>();

        details.SetUnit(unit);
        details.SetDimension(mapBounds);
    }
Exemple #2
0
 private void ReduceCoins()
 {
     Economy.DecreaseCoins(selectedOption.price);
 }