Esempio n. 1
0
 public LinkedTransform(ItemStack stack)
 {
     this.stack = stack;
     itemBox    = ItemBox.InstantiateFromTemplate(ItemDisplayProxy.InstantiateFromTemplate(Item.FromSerializableItem(stack.seri)));
     transform  = new GameObject(string.Format("BOX_{0}", stack.seri.name)).transform;
     itemBox.transform.position = transform.position;
     itemBox.transform.SetParent(transform);
     this.stack.updateCount = (int count) => {
         itemBox.setCount(count);
     };
 }