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); })); }
public void ExitShop() { shopper = null; onExitShop?.Invoke(); }
public void EnterShop(Shopper s) { shopper = s; onEnterShop?.Invoke(); }