void Start() { cursorToolRect = transform.Find("CursorTool"); moneyCounter = GameObject.Find("MoneyCounterText").GetComponent <MoneyCounter> (); inventory = new Inventory(); shop_Inventory = new Shop_Inventory(); UI_Inventory.setInventory(inventory); UI_Shop_Inventory.setInventory(shop_Inventory); }
public void setInventory(Shop_Inventory shop_Inventory) { this.shop_Inventory = shop_Inventory; refreshInventoryItems(); }