Forum begins after the advertisement:
-
::Here’s the additional functions not shown in the video
StorageManager.cs
/// <summary>
/// Set the slot data of the currently open storage container
/// </summary>
/// <param name="index">The index to change</param>
/// <param name="slotData">The slot data</param>
public static void SetSlotData(int index, ItemSlotData slotData)
{
GetStorageList(StorageType)[index] = new ItemSlotData(slotData);
}
public static void TransferItems(int slotIndex, InventorySlot.InventoryType inventoryType)
{
//Storage to Inventory
if (inventoryType == InventorySlot.InventoryType.Storage)
{
StorageToInventory(slotIndex);
return;
}
//Inventory to Storage
InventoryToStorage(slotIndex);
}