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); }
private void ReduceCoins() { Economy.DecreaseCoins(selectedOption.price); }