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