public void UpdateRepairCostAndHealth() { if (!playerStats) { NewPlayer(); } //updates the health and repair after its been attacked txtHealth.text = "Health: " + healthScript.CurrentHealth + " / " + healthScript.MaxHealth; txtRepairPrice.text = "Repair: Wood: " + buildingStats.WoodRepairCost + ", Stone: " + buildingStats.StoneRepairCost; txtSellPrice.text = "Sell: Wood " + buildingStats.GetSellWood() + ", Stone " + buildingStats.GetSellStone(); }