public override UnityAction Action(Item i, int n, object player)
        {
            return(new UnityAction(delegate
            {
                Inventory inventory = player as Inventory;

                Shopper s = inventory.gameObject.GetComponent <Shopper>();

                s.SellItem(i);
            }));
        }
Пример #2
0
 public void ExitShop()
 {
     shopper = null;
     onExitShop?.Invoke();
 }
Пример #3
0
 public void EnterShop(Shopper s)
 {
     shopper = s;
     onEnterShop?.Invoke();
 }