using System.Collections; using System.Collections.Generic; using UnityEngine; public class InventoryManager : MonoBehaviour { public Item[] allItems; private List itemList; public List ItemList{ get{ return itemList; } set{ itemList = value; } } void Awake(){ allItems = Resources.LoadAll("ItemObjects"); itemList = new List(allItems); } }