コード例 #1
0
 public void CreateItem(InventorySlotData slotData)
 {
     SlotItem.Create(slotData);
     if (Inventory != null && Inventory.Configuration == InventoryConfiguration.RaidInventory)
     {
         UpdateState();
     }
 }
コード例 #2
0
 public void CreateItem(string itemType, string itemId, int amount)
 {
     SlotItem.gameObject.SetActive(true);
     SlotItem.Create(itemType, itemId, amount);
     if (Inventory != null && Inventory.Configuration == InventoryConfiguration.RaidInventory)
     {
         UpdateState();
     }
 }
コード例 #3
0
 public void CreateItem(Trinket trinket)
 {
     SlotItem.gameObject.SetActive(true);
     SlotItem.Create(trinket);
     if (Inventory != null && Inventory.Configuration == InventoryConfiguration.RaidInventory)
     {
         UpdateState();
     }
 }
コード例 #4
0
 public void CreateItem(ItemDefinition itemDefinition)
 {
     SlotItem.gameObject.SetActive(true);
     SlotItem.Create(itemDefinition.Type, itemDefinition.Id, itemDefinition.Amount);
     if (Inventory != null && Inventory.Configuration == InventoryConfiguration.RaidInventory)
     {
         UpdateState();
     }
 }