public int[] AmmoBackpackMax; // store the maximum value of carried ammo here. //public ItemData emptyItem; public void Start() { for (int i = 0; i < inventoryListSlotRestriction.Length; i++) { inventoryList.Add(emptyItem.gameObject); ItemModelList.Add(emptyItem.gameObject); } }
public ItemModelList GetAll() { ItemModelList items = new ItemModelList(); // MOCKUP: Generate data for return for (int i = 0; i < 100; i++) { items.Add(new ItemModel() {Id=i,ItemName="item "+i,Description="Desc "+i, Cost=i, Price= i+1, Qty=i }); } return items; }
public ItemModelList GetAll() { ItemModelList items = new ItemModelList(); // MOCKUP: Generate data for return for (int i = 0; i < 100; i++) { items.Add(new ItemModel() { Id = i, ItemName = "item " + i, Description = "Desc " + i, Cost = i, Price = i + 1, Qty = i }); } return(items); }