private void UpdateData()
    {
        (int nextLevelMetalCost, int nextLevelCrystalCost) = Balancing.BuldingUpgradeCost(resourceType, building.MaximumLevel + 1);

        textName.text         = resourceType.ToString() + " Mine";
        textCurrentLevel.text = "Current Level: " + building.CurrentLevel;
        textMaximumLevel.text = "Maximum Level: " + building.MaximumLevel;
        textbutton.text       = "Unlock Level " + (building.MaximumLevel + 1);
        textUpgradeCost.text  = nextLevelMetalCost + " Metal" + "\n"
                                + nextLevelCrystalCost + " Crystal" + "\n";
        textAssignedWorkers.text = "Worker: " + building.WorkersAssigend;
    }
 public void BuildingUpgradeButtonClicked()
 {
     (int nextLevelMetalCost, int nextLevelCrystalCost) = Balancing.BuldingUpgradeCost(resourceType, building.MaximumLevel + 1);
     BuyUpgrade(nextLevelMetalCost, nextLevelCrystalCost);
     UpdateData();
 }