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;
 }
Пример #2
0
 public void BuyHover(BuyingEntry entry)
 {
     _tooltip.Item = entry.Item;
     _tooltip.gameObject.SetActive(true);
 }
Пример #3
0
 public void BuyStopHover(BuyingEntry entry)
 {
     _tooltip.gameObject.SetActive(false);
 }
Пример #4
0
        private void customerBuyingEntry_Click(object sender, EventArgs e)
        {
            var entry = new BuyingEntry();

            entry.Show();
        }