public void HandleClick() { // whatever clicking this button should do if (cost <= coinHandler.getCoins()) { gameManager.SetState(GameState.Place, item.prefab, cost); } else { coinHandler.showTooExpensive(); } }