public void UpgradeAttack() { if (gameManager.gold >= 10) { playerStats.AddAttack(); gameManager.gold -= 10; gold.text = "Gold : " + gameManager.gold; attackText.text = "Attack : " + playerStats.attackPower; } }