Esempio n. 1
0
 public MapObjectItem(MapObjectItem _item)
 {
     this.name            = _item.name;
     this.id              = _item.id;
     this.icon            = _item.icon;
     this.context         = _item.context;
     this.gold            = _item.gold;
     this.saleGold        = _item.saleGold;
     this.mapObjectPrefab = _item.mapObjectPrefab;
 }
Esempio n. 2
0
    public virtual void SetSlot(int _index, MapObjectItem _item)
    {
        index = _index;

        item = _item;

        if (item == null || item.id == 0)
        {
            iconImage.gameObject.SetActive(false);
        }
        else
        {
            iconImage.sprite = item.icon;
            iconImage.gameObject.SetActive(true);
        }
    }
Esempio n. 3
0
 public virtual void AddSlot(MapObjectItem _item)
 {
     itemList.Add(_item);
 }
Esempio n. 4
0
 public void AddSlot(MapObjectItem _item)
 {
     inventory.AddSlot(item);
 }