public void Start() { if (!started) { started = true; display = GetComponent <IngredientSelectedDisplay>(); moneyLibrary = LibraryManager.instance.get <MoneyLibrary>(); ingredientInventoryLibrary = LibraryManager.instance.get <IngredientInventoryLibrary>(); buyButton.clicked += buyItem; moneyLibrary.moneyChanged += updateEnableBuyButton; } }