public void Buy(BuyingEntry entry) { Debug.Log($"Buying {entry.Item.Name} for {entry.Price}"); _inventoryController.AddItem(Instantiate(entry.Item), 1); _inventoryController.Money = _inventoryController.Money - entry.Price; }
public void BuyHover(BuyingEntry entry) { _tooltip.Item = entry.Item; _tooltip.gameObject.SetActive(true); }
public void BuyStopHover(BuyingEntry entry) { _tooltip.gameObject.SetActive(false); }
private void customerBuyingEntry_Click(object sender, EventArgs e) { var entry = new BuyingEntry(); entry.Show(); }