public void buyRate() { if (GameManager.Instance.gold >= 700) { GameManager.Instance.gold -= 700; inv.addItem(9); } }