public void Awake() { bos = BuyItem; itemDisplay = this.GetComponent <Image>(); inventoryPanel = InventoryPanel.instance; if (inventoryItem != null) { itemDisplay.sprite = inventoryItem.itemImage; } if (itemDisplay.sprite != null) { itemDisplay.color = Color.white; } }
public void ShopPanel_Buying() { bos = BuyItem; }
public void ShopPanel_Selling() { bos = SellItem; }