예제 #1
0
 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);
 }
예제 #2
0
 public void setInventory(Shop_Inventory shop_Inventory)
 {
     this.shop_Inventory = shop_Inventory;
     refreshInventoryItems();
 }