Пример #1
0
        public Item(string id)
        {
            Item item = ItemAsset.GetItem(id);

            this.id   = id;
            this.name = item.name;
            this.icon = item.icon;
        }
Пример #2
0
        public void AddItem(string id)
        {
            var item = ItemAsset.GetItem(id);

            AddItem(item);
        }
Пример #3
0
 private void Start()
 {
     item = ItemAsset.GetItem(itemId);
 }