コード例 #1
0
    public void Display(InventoryItemSharedData inventoryItemSharedData, InventoryItemSlotView inventoryItemSlotView)
    {
        this._descriptionTextField.text = inventoryItemSharedData._Description;

        this.rectTransform.anchoredPosition = inventoryItemSlotView._RectTransform.anchoredPosition + this._offset;
    }
コード例 #2
0
 public bool Add(InventoryItemSharedData inventoryItemSharedData, int quantity)
 {
     return(this.Add(new InventoryItem(inventoryItemSharedData.Id, quantity)));
 }
コード例 #3
0
#pragma warning restore 0219, 414

    private void OnEnable()
    {
        this._sInventoryItemSharedData = this.target as InventoryItemSharedData;
    }
コード例 #4
0
 public bool Add(InventoryItemSharedData inventoryItemSharedData)
 {
     return(this.Add(new InventoryItem(inventoryItemSharedData.Id)));
 }