private void Start() { foreach (item item in itemsToAdd) { myInventory.addItem(new itemStack(item, 1)); } inventoryManager.INSTANCE.openContainer(new containerPlayerInventory(null, myInventory, limitSize, limitHeight), limitHeight); }
public void addItems(item items) { //Debug.Log(items); inventory.addItem(new itemStack(items, 1)); }