public void buyArmor() { if (GameManager.Instance.gold >= 1000) { GameManager.Instance.gold -= 1000; inv.addItem(0); } }