Exemplo n.º 1
0
 public static void ItemAddedToInventory(Item item, int slotIndex)
 {
     if (OnItemAddedToInventory != null)
     {
         OnItemAddedToInventory.Invoke(item, slotIndex);
     }
 }
Exemplo n.º 2
0
 public void fireAddItemToInventoryEvent(ItemObject item, PlayerController player)
 {
     /*if (!subscripInitialized.Contains(item))
      * {
      *  item.subscribeToEvents();
      *  subscripInitialized.Add(item);
      * }*/
     OnItemAddedToInventory?.Invoke(this, new OnItemAddedToInventoryArgs {
         item = item, playerRef = player
     });
 }
Exemplo n.º 3
0
 public void InvokeItemAddedToInventory(ItemObject itemObject)
 {
     Debug.Log("Item Added To Inventory");
     OnItemAddedToInventory.Invoke(itemObject);
 }
Exemplo n.º 4
0
 private void Add(InventoryItem inventoryItem)
 {
     items.Add(inventoryItem);
     OnItemAddedToInventory?.Invoke(inventoryItem);
 }