コード例 #1
0
ファイル: DisplayCase.cs プロジェクト: melsov/MyLandz
 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);
     };
 }