Example #1
0
    private void Start()
    {
        foreach (item item in itemsToAdd)
        {
            myInventory.addItem(new itemStack(item, 1));
        }

        inventoryManager.INSTANCE.openContainer(new containerPlayerInventory(null, myInventory, limitSize, limitHeight), limitHeight);
    }
Example #2
0
 public void addItems(item items)
 {
     //Debug.Log(items);
     inventory.addItem(new itemStack(items, 1));
 }