TheKingsRace/Assets/Scripts/PlayerScripts/ItemScripts/InventoryManager.cs
2021-10-29 12:28:36 -05:00

21 lines
459 B
C#

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