void Start() { Initialize(); InventoryList <string> inventoryList = new InventoryList <string>(); inventoryList.SetItem("Potion"); Debug.Log(inventoryList.item); }
private void Start() { Initialize(); //implimenting our custom generic class InventoryList //all the InventroyList does is print out when a new InventoryList is initialized InventoryList <string> inventoryList = new InventoryList <string>(); inventoryList.SetItem("Potion"); Debug.Log(inventoryList.item); }