need script for inventory system :c#
List<Item> inventory = new List<Item>();
sorry i need the whole project or the whole script
You cant just ask for a script like that in here , Try Collaboration.
struct Item
{
public string itemType;
public Item(string type)
{
itemType = type;
}
};
//Store in:
List<Item> inventory = new List<Item>();
//Add item with
inventory.Add(new Item("Sword"));
//Remove item with
inventory.RemoveAt(0);
Just so happens I have one… it’s for sale in the Asset Store. IGIS - Basic Inventory System