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();
        }